diff --git a/Cargo.toml b/Cargo.toml index 5b3953c58..59a4e66d2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ keywords = ["hash", "no_std", "hashmap", "swisstable"] categories = ["data-structures", "no-std"] exclude = [".github", "/ci/*"] edition = "2021" -rust-version = "1.65.0" +rust-version = "1.63.0" [dependencies] # For the default hasher diff --git a/src/raw/mod.rs b/src/raw/mod.rs index 6a8d37d82..f3d0e44c4 100644 --- a/src/raw/mod.rs +++ b/src/raw/mod.rs @@ -1432,9 +1432,7 @@ impl RawTableInner { const fn new() -> Self { Self { // Be careful to cast the entire slice to a raw pointer. - ctrl: unsafe { - NonNull::new_unchecked(Group::static_empty().as_ptr().cast_mut().cast()) - }, + ctrl: unsafe { NonNull::new_unchecked(Group::static_empty().as_ptr() as *mut _) }, bucket_mask: 0, items: 0, growth_left: 0,