@@ -59,15 +59,15 @@ fn cold() {}
5959#[ inline]
6060fn likely ( b : bool ) -> bool {
6161 if !b {
62- cold ( )
62+ cold ( ) ;
6363 }
6464 b
6565}
6666#[ cfg( not( feature = "nightly" ) ) ]
6767#[ inline]
6868fn unlikely ( b : bool ) -> bool {
6969 if b {
70- cold ( )
70+ cold ( ) ;
7171 }
7272 b
7373}
@@ -502,7 +502,7 @@ impl<T, A: Allocator + Clone> RawTable<T, A> {
502502 /// Deallocates the table without dropping any entries.
503503 #[ cfg_attr( feature = "inline-more" , inline) ]
504504 unsafe fn free_buckets ( & mut self ) {
505- self . table . free_buckets ( TableLayout :: new :: < T > ( ) )
505+ self . table . free_buckets ( TableLayout :: new :: < T > ( ) ) ;
506506 }
507507
508508 /// Returns pointer to one past last element of data table.
@@ -537,7 +537,7 @@ impl<T, A: Allocator + Clone> RawTable<T, A> {
537537 #[ deprecated( since = "0.8.1" , note = "use erase or remove instead" ) ]
538538 pub unsafe fn erase_no_drop ( & mut self , item : & Bucket < T > ) {
539539 let index = self . bucket_index ( item) ;
540- self . table . erase ( index)
540+ self . table . erase ( index) ;
541541 }
542542
543543 /// Erases an element from the table, dropping it in place.
@@ -586,7 +586,7 @@ impl<T, A: Allocator + Clone> RawTable<T, A> {
586586 /// Marks all table buckets as empty without dropping their contents.
587587 #[ cfg_attr( feature = "inline-more" , inline) ]
588588 pub fn clear_no_drop ( & mut self ) {
589- self . table . clear_no_drop ( )
589+ self . table . clear_no_drop ( ) ;
590590 }
591591
592592 /// Removes all elements from the table without freeing the backing memory.
@@ -631,7 +631,7 @@ impl<T, A: Allocator + Clone> RawTable<T, A> {
631631 if min_buckets < self . buckets ( ) {
632632 // Fast path if the table is empty
633633 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 ( ) ) ;
635635 } else {
636636 // Avoid `Result::unwrap_or_else` because it bloats LLVM IR.
637637 if self
@@ -1271,7 +1271,7 @@ impl<A: Allocator + Clone> RawTableInner<A> {
12711271 /// the end of the array.
12721272 #[ inline]
12731273 unsafe fn set_ctrl_h2 ( & self , index : usize , hash : u64 ) {
1274- self . set_ctrl ( index, h2 ( hash) )
1274+ self . set_ctrl ( index, h2 ( hash) ) ;
12751275 }
12761276
12771277 #[ inline]
@@ -1646,7 +1646,7 @@ impl<T: Clone, A: Allocator + Clone> Clone for RawTable<T, A> {
16461646
16471647 self . clone_from_spec ( source, |self_| {
16481648 // We need to leave the table in an empty state.
1649- self_. clear_no_drop ( )
1649+ self_. clear_no_drop ( ) ;
16501650 } ) ;
16511651 }
16521652 }
0 commit comments