Skip to content

Commit cf2995a

Browse files
committed
fix rustfmt
1 parent d9b2e37 commit cf2995a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/raw/mod.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ static EMPTY_SINGLETON: Header<()> = {
396396
}
397397
};
398398

399-
unsafe impl<T: Sync> Sync for Header<T> { }
399+
unsafe impl<T: Sync> Sync for Header<T> {}
400400

401401
impl<T> RawTable<T> {
402402
/// Creates a new empty hash table without allocating any memory.
@@ -489,9 +489,7 @@ impl<T> RawTable<T> {
489489

490490
#[inline]
491491
fn header(&self) -> &Header<T> {
492-
unsafe {
493-
&*self.header.as_ptr()
494-
}
492+
unsafe { &*self.header.as_ptr() }
495493
}
496494

497495
#[inline]

0 commit comments

Comments
 (0)