File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ( ) ) )
You can’t perform that action at this time.
0 commit comments