Skip to content

Commit 6d0de8b

Browse files
committed
chore: satisfy clippy
1 parent f8dc0e3 commit 6d0de8b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/patch/edit/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -493,12 +493,12 @@ impl<'a, 'repo> EditBuilder<'a, 'repo> {
493493

494494
let tree_id = if need_to_apply_diff {
495495
let diff = diff.unwrap().0;
496-
497-
match stupid.with_temp_index(|stupid_temp| {
496+
let tree_result = stupid.with_temp_index(|stupid_temp| {
498497
stupid_temp.read_tree(parent_id)?;
499498
stupid_temp.apply_to_index(diff.as_ref())?;
500499
stupid_temp.write_tree()
501-
}) {
500+
});
501+
match tree_result {
502502
Ok(tree_id) => tree_id,
503503
Err(e) => {
504504
let diff = Some(DiffBuffer(diff));

0 commit comments

Comments
 (0)