We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3450199 commit fd42bb5Copy full SHA for fd42bb5
gix-merge/tests/merge/tree/baseline.rs
@@ -262,7 +262,7 @@ fn parse_conflict_file_info(line: &str) -> Option<(Entry, Side)> {
262
Entry {
263
location: path.to_owned(),
264
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),
+ mode: EntryMode::try_from(oct_mode.as_bytes()).unwrap(),
266
},
267
match stage {
268
"1" => Side::Ancestor,
@@ -339,7 +339,7 @@ pub fn visualize_tree(
339
mode = if mode.is_tree() {
340
"".into()
341
} else {
342
- format!("{:o}:", mode.0)
+ format!("{mode:o}:")
343
}
344
)
345
0 commit comments