Skip to content

Commit 90ca988

Browse files
committed
rename
1 parent 1944656 commit 90ca988

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/borrow.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ impl BorrowedInterned {
2020

2121
pub fn intern(&self) -> Interned {
2222
Interned::from_existing(
23-
POOL.get_existing(self.deref())
24-
.expect("borrowed values must exist in the pool"),
23+
POOL.get_from_existing_ref(self.deref())
24+
.expect("borrowed values must already exist in the pool"),
2525
)
2626
}
2727

src/pool.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ impl ShardedSet {
3333
self.hash_builder.hash_one(value.deref())
3434
}
3535

36-
pub(crate) fn get_existing(&self, value: &[u8]) -> Option<Arc<[u8]>> {
36+
pub(crate) fn get_from_existing_ref(&self, value: &[u8]) -> Option<Arc<[u8]>> {
3737
let (hash, shard) = self.get_hash_and_shard(value);
3838
shard
3939
.find(hash, |o| std::ptr::addr_eq(o.as_ptr(), value.as_ptr()))

0 commit comments

Comments
 (0)