Skip to content

Commit

Permalink
Thanks clippy!
Browse files Browse the repository at this point in the history
`toggle_expand` trait fn was not being used.
  • Loading branch information
Piturnah committed May 7, 2024
1 parent 4a535b1 commit fb3831b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -693,9 +693,9 @@ impl Status {
.context("cursor is at invalid position")?;

if file.cursor == 0 {
file.expanded = !file.expanded;
file.toggle_expand();
} else {
file.hunks[file.cursor - 1].expanded = !file.hunks[file.cursor - 1].expanded;
file.hunks[file.cursor - 1].toggle_expand();
}

Ok(())
Expand Down

0 comments on commit fb3831b

Please sign in to comment.