mirror of
https://github.com/extrawurst/gitui.git
synced 2024-12-29 12:06:26 +03:00
clippy fix
This commit is contained in:
parent
b0b1f7d86b
commit
99a240da5f
@ -489,7 +489,9 @@ impl App {
|
||||
}
|
||||
|
||||
fn switch_focus(&mut self, f: Focus) -> NeedsUpdate {
|
||||
if self.focus != f {
|
||||
if self.focus == f {
|
||||
NeedsUpdate::empty()
|
||||
} else {
|
||||
self.focus = f;
|
||||
|
||||
match self.focus {
|
||||
@ -510,8 +512,6 @@ impl App {
|
||||
};
|
||||
|
||||
NeedsUpdate::DIFF | NeedsUpdate::COMMANDS
|
||||
} else {
|
||||
NeedsUpdate::empty()
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user