Skip to content

Commit

Permalink
style: format updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jpgrayson committed Jul 21, 2024
1 parent fada9e7 commit 54e2f96
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/stack/transaction/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -834,11 +834,13 @@ impl<'repo> StackTransaction<'repo> {
// The renamed patch may have been previously updated in this transaction.
// This can happen, for example, for `stg refresh`.
self.updated_patches.insert(old_patchname.clone(), None);
self.updated_patches.insert(new_patchname.clone(), Some(patch_state));
self.updated_patches
.insert(new_patchname.clone(), Some(patch_state));
} else {
let patch_state = self.stack.get_patch(old_patchname).clone();
self.updated_patches.insert(old_patchname.clone(), None);
self.updated_patches.insert(new_patchname.clone(), Some(patch_state));
self.updated_patches
.insert(new_patchname.clone(), Some(patch_state));
}

self.ui.print_rename(old_patchname, new_patchname)
Expand Down

0 comments on commit 54e2f96

Please sign in to comment.