Skip to content

Commit

Permalink
chore: satisfy clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
jpgrayson committed Feb 10, 2024
1 parent f8dc0e3 commit 6d0de8b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/patch/edit/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -493,12 +493,12 @@ impl<'a, 'repo> EditBuilder<'a, 'repo> {

let tree_id = if need_to_apply_diff {
let diff = diff.unwrap().0;

match stupid.with_temp_index(|stupid_temp| {
let tree_result = stupid.with_temp_index(|stupid_temp| {
stupid_temp.read_tree(parent_id)?;
stupid_temp.apply_to_index(diff.as_ref())?;
stupid_temp.write_tree()
}) {
});
match tree_result {
Ok(tree_id) => tree_id,
Err(e) => {
let diff = Some(DiffBuffer(diff));
Expand Down

0 comments on commit 6d0de8b

Please sign in to comment.