Skip to content

Commit 201e853

Browse files
committed
adapt to changes in gix-hash
1 parent c17aee6 commit 201e853

File tree

1 file changed

+3
-4
lines changed
  • gix-odb/src/store_impls/loose

1 file changed

+3
-4
lines changed

gix-odb/src/store_impls/loose/mod.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,9 @@ impl Store {
4242

4343
fn hash_path(id: &gix_hash::oid, mut root: PathBuf) -> PathBuf {
4444
let mut hex = gix_hash::Kind::hex_buf();
45-
let hex_len = id.hex_to_buf(hex.as_mut());
46-
let buf = std::str::from_utf8(&hex[..hex_len]).expect("ascii only in hex");
47-
root.push(&buf[..2]);
48-
root.push(&buf[2..]);
45+
let hex = id.hex_to_buf(hex.as_mut());
46+
root.push(&hex[..2]);
47+
root.push(&hex[2..]);
4948
root
5049
}
5150

0 commit comments

Comments
 (0)