@@ -48,7 +48,7 @@ impl<T: Sync, A: Allocator> SourceCleanup for HashSetRefSourceDescriptor<'_, T,
4848 const NEEDS_CLEANUP : bool = false ;
4949
5050 fn len ( & self ) -> usize {
51- self . table . inner . buckets ( )
51+ self . table . inner . num_buckets ( )
5252 }
5353
5454 unsafe fn cleanup_item_range ( & self , _range : core:: ops:: Range < usize > ) {
@@ -121,7 +121,7 @@ impl<K: Sync, V: Sync, A: Allocator> SourceCleanup for HashMapRefSourceDescripto
121121 const NEEDS_CLEANUP : bool = false ;
122122
123123 fn len ( & self ) -> usize {
124- self . table . inner . buckets ( )
124+ self . table . inner . num_buckets ( )
125125 }
126126
127127 unsafe fn cleanup_item_range ( & self , _range : core:: ops:: Range < usize > ) {
@@ -195,7 +195,7 @@ impl<K: Sync, V: Send, A: Allocator> SourceCleanup for HashMapRefMutSourceDescri
195195 const NEEDS_CLEANUP : bool = false ;
196196
197197 fn len ( & self ) -> usize {
198- self . table . inner . buckets ( )
198+ self . table . inner . num_buckets ( )
199199 }
200200
201201 unsafe fn cleanup_item_range ( & self , _range : core:: ops:: Range < usize > ) {
@@ -274,7 +274,7 @@ impl<T: Send, A: Allocator> SourceCleanup for HashSetSourceDescriptor<T, A> {
274274 const NEEDS_CLEANUP : bool = core:: mem:: needs_drop :: < T > ( ) ;
275275
276276 fn len ( & self ) -> usize {
277- self . table . inner . buckets ( )
277+ self . table . inner . num_buckets ( )
278278 }
279279
280280 unsafe fn cleanup_item_range ( & self , range : core:: ops:: Range < usize > ) {
@@ -392,7 +392,7 @@ impl<K: Send, V: Send, A: Allocator> SourceCleanup for HashMapSourceDescriptor<K
392392 const NEEDS_CLEANUP : bool = core:: mem:: needs_drop :: < ( K , V ) > ( ) ;
393393
394394 fn len ( & self ) -> usize {
395- self . table . inner . buckets ( )
395+ self . table . inner . num_buckets ( )
396396 }
397397
398398 unsafe fn cleanup_item_range ( & self , range : core:: ops:: Range < usize > ) {
0 commit comments