@@ -59,15 +59,15 @@ fn cold() {}
59
59
#[ inline]
60
60
fn likely ( b : bool ) -> bool {
61
61
if !b {
62
- cold ( )
62
+ cold ( ) ;
63
63
}
64
64
b
65
65
}
66
66
#[ cfg( not( feature = "nightly" ) ) ]
67
67
#[ inline]
68
68
fn unlikely ( b : bool ) -> bool {
69
69
if b {
70
- cold ( )
70
+ cold ( ) ;
71
71
}
72
72
b
73
73
}
@@ -502,7 +502,7 @@ impl<T, A: Allocator + Clone> RawTable<T, A> {
502
502
/// Deallocates the table without dropping any entries.
503
503
#[ cfg_attr( feature = "inline-more" , inline) ]
504
504
unsafe fn free_buckets ( & mut self ) {
505
- self . table . free_buckets ( TableLayout :: new :: < T > ( ) )
505
+ self . table . free_buckets ( TableLayout :: new :: < T > ( ) ) ;
506
506
}
507
507
508
508
/// Returns pointer to one past last element of data table.
@@ -537,7 +537,7 @@ impl<T, A: Allocator + Clone> RawTable<T, A> {
537
537
#[ deprecated( since = "0.8.1" , note = "use erase or remove instead" ) ]
538
538
pub unsafe fn erase_no_drop ( & mut self , item : & Bucket < T > ) {
539
539
let index = self . bucket_index ( item) ;
540
- self . table . erase ( index)
540
+ self . table . erase ( index) ;
541
541
}
542
542
543
543
/// Erases an element from the table, dropping it in place.
@@ -586,7 +586,7 @@ impl<T, A: Allocator + Clone> RawTable<T, A> {
586
586
/// Marks all table buckets as empty without dropping their contents.
587
587
#[ cfg_attr( feature = "inline-more" , inline) ]
588
588
pub fn clear_no_drop ( & mut self ) {
589
- self . table . clear_no_drop ( )
589
+ self . table . clear_no_drop ( ) ;
590
590
}
591
591
592
592
/// Removes all elements from the table without freeing the backing memory.
@@ -631,7 +631,7 @@ impl<T, A: Allocator + Clone> RawTable<T, A> {
631
631
if min_buckets < self . buckets ( ) {
632
632
// Fast path if the table is empty
633
633
if self . table . items == 0 {
634
- * self = Self :: with_capacity_in ( min_size, self . table . alloc . clone ( ) )
634
+ * self = Self :: with_capacity_in ( min_size, self . table . alloc . clone ( ) ) ;
635
635
} else {
636
636
// Avoid `Result::unwrap_or_else` because it bloats LLVM IR.
637
637
if self
@@ -1271,7 +1271,7 @@ impl<A: Allocator + Clone> RawTableInner<A> {
1271
1271
/// the end of the array.
1272
1272
#[ inline]
1273
1273
unsafe fn set_ctrl_h2 ( & self , index : usize , hash : u64 ) {
1274
- self . set_ctrl ( index, h2 ( hash) )
1274
+ self . set_ctrl ( index, h2 ( hash) ) ;
1275
1275
}
1276
1276
1277
1277
#[ inline]
@@ -1646,7 +1646,7 @@ impl<T: Clone, A: Allocator + Clone> Clone for RawTable<T, A> {
1646
1646
1647
1647
self . clone_from_spec ( source, |self_| {
1648
1648
// We need to leave the table in an empty state.
1649
- self_. clear_no_drop ( )
1649
+ self_. clear_no_drop ( ) ;
1650
1650
} ) ;
1651
1651
}
1652
1652
}
0 commit comments