diff options
author | Caleb Bassi <calebjbassi@gmail.com> | 2019-02-15 19:13:42 -0800 |
---|---|---|
committer | Caleb Bassi <calebjbassi@gmail.com> | 2019-02-15 19:37:29 -0800 |
commit | 8b04fec104cd20b86ff98f4da225bb866a407f8c (patch) | |
tree | f9b58da3f2a107d136a66c61d08dead883965864 /src/commands/tab_switch.rs | |
parent | 055ac602929af367da2af77999e73de6bf8fd344 (diff) |
Fix most clippy lints
Diffstat (limited to 'src/commands/tab_switch.rs')
-rw-r--r-- | src/commands/tab_switch.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands/tab_switch.rs b/src/commands/tab_switch.rs index 583347e..719b9cb 100644 --- a/src/commands/tab_switch.rs +++ b/src/commands/tab_switch.rs @@ -47,10 +47,10 @@ impl JoshutoRunnable for TabSwitch { let mut new_index = context.curr_tab_index as i32 + self.movement; let tab_len = context.tabs.len() as i32; while new_index < 0 { - new_index = new_index + tab_len; + new_index += tab_len; } while new_index >= tab_len { - new_index = new_index - tab_len; + new_index -= tab_len; } Self::tab_switch(new_index, context); } |