diff options
Diffstat (limited to 'vendor/gix-odb/src/store_impls/dynamic/prefix.rs')
-rw-r--r-- | vendor/gix-odb/src/store_impls/dynamic/prefix.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vendor/gix-odb/src/store_impls/dynamic/prefix.rs b/vendor/gix-odb/src/store_impls/dynamic/prefix.rs index c0edeba3f..58a49416b 100644 --- a/vendor/gix-odb/src/store_impls/dynamic/prefix.rs +++ b/vendor/gix-odb/src/store_impls/dynamic/prefix.rs @@ -40,13 +40,13 @@ pub mod disambiguate { /// matching this prefix. pub fn new(id: impl Into<gix_hash::ObjectId>, hex_len: usize) -> Result<Self, gix_hash::prefix::Error> { let id = id.into(); - gix_hash::Prefix::new(id, hex_len)?; + gix_hash::Prefix::new(&id, hex_len)?; Ok(Candidate { id, hex_len }) } /// Transform ourselves into a `Prefix` with our current hex lengths. pub fn to_prefix(&self) -> gix_hash::Prefix { - gix_hash::Prefix::new(self.id, self.hex_len).expect("our hex-len to always be in bounds") + gix_hash::Prefix::new(&self.id, self.hex_len).expect("our hex-len to always be in bounds") } pub(crate) fn inc_hex_len(&mut self) { @@ -85,6 +85,7 @@ where match *count { Some(count) => Ok(count), None => { + let _span = gix_features::trace::detail!("gix_odb::Handle::packed_object_count()"); let mut snapshot = self.snapshot.borrow_mut(); *snapshot = self.store.load_all_indices()?; let mut obj_count = 0; |