Skip to content

Commit 20adf23

Browse files
committed
Make RawTable::bucket_index() pub.
1 parent 4e7acb5 commit 20adf23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/raw/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ impl<T> RawTable<T> {
429429

430430
/// Returns the index of a bucket from a `Bucket`.
431431
#[cfg_attr(feature = "inline-more", inline)]
432-
unsafe fn bucket_index(&self, bucket: &Bucket<T>) -> usize {
432+
pub unsafe fn bucket_index(&self, bucket: &Bucket<T>) -> usize {
433433
if mem::size_of::<T>() == 0 {
434434
bucket.ptr as usize
435435
} else {

0 commit comments

Comments
 (0)