Skip to content

Commit fd42bb5

Browse files
fix(gix-merge): adapt to changes in gix-object
1 parent 3450199 commit fd42bb5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gix-merge/tests/merge/tree/baseline.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ fn parse_conflict_file_info(line: &str) -> Option<(Entry, Side)> {
262262
Entry {
263263
location: path.to_owned(),
264264
id: gix_hash::ObjectId::from_hex(hex_id.as_bytes()).unwrap(),
265-
mode: EntryMode(gix_utils::btoi::to_signed_with_radix::<usize>(oct_mode.as_bytes(), 8).unwrap() as u16),
265+
mode: EntryMode::try_from(oct_mode.as_bytes()).unwrap(),
266266
},
267267
match stage {
268268
"1" => Side::Ancestor,
@@ -339,7 +339,7 @@ pub fn visualize_tree(
339339
mode = if mode.is_tree() {
340340
"".into()
341341
} else {
342-
format!("{:o}:", mode.0)
342+
format!("{mode:o}:")
343343
}
344344
)
345345
}

0 commit comments

Comments
 (0)