We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9b2e37 commit cf2995aCopy full SHA for cf2995a
src/raw/mod.rs
@@ -396,7 +396,7 @@ static EMPTY_SINGLETON: Header<()> = {
396
}
397
};
398
399
-unsafe impl<T: Sync> Sync for Header<T> { }
+unsafe impl<T: Sync> Sync for Header<T> {}
400
401
impl<T> RawTable<T> {
402
/// Creates a new empty hash table without allocating any memory.
@@ -489,9 +489,7 @@ impl<T> RawTable<T> {
489
490
#[inline]
491
fn header(&self) -> &Header<T> {
492
- unsafe {
493
- &*self.header.as_ptr()
494
- }
+ unsafe { &*self.header.as_ptr() }
495
496
497
0 commit comments