diff --git a/src/internal/hash_table/mod.rs b/src/internal/hash_table/mod.rs index 85faf9f..194b096 100644 --- a/src/internal/hash_table/mod.rs +++ b/src/internal/hash_table/mod.rs @@ -356,10 +356,7 @@ impl, E: Equals> HashTable // allocate a new node and add it to the bucket let node = self.allocator.allocate::>(1); unsafe { - std::ptr::write( - node as *mut Node, - Node::::new(key, value, target_bucket.read()), - ); + std::ptr::write(node, Node::::new(key, value, target_bucket.read())); target_bucket.write(node); }; self.element_count += 1;