remove needless mut (clippy::needless_pass_by_ref_mut)
This commit is contained in:
parent
89174c5e0d
commit
f8c23b2ef1
1 changed files with 1 additions and 1 deletions
|
|
@ -1128,7 +1128,7 @@ meta 0b100000 (32)
|
|||
caps_lock 0b1000000 (64)
|
||||
num_lock 0b10000000 (128)
|
||||
*/
|
||||
fn calculate_modifier_number(state: &mut State) -> u8 {
|
||||
fn calculate_modifier_number(state: &State) -> u8 {
|
||||
let mut mod_no = 0;
|
||||
if state.modifiers.shift() {
|
||||
mod_no |= 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue