Skip to content

Commit d53d72d

Browse files
committed
Formatting
1 parent 7bd7bce commit d53d72d

File tree

7 files changed

+7
-11
lines changed

7 files changed

+7
-11
lines changed

src/layouts/azerty.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -501,10 +501,8 @@ impl KeyboardLayout for Azerty {
501501
}
502502
}
503503
KeyCode::NumpadEnter => DecodedKey::Unicode(10.into()),
504-
KeyCode::ShiftLeft => {
505-
DecodedKey::Unicode('<')
506-
}
504+
KeyCode::ShiftLeft => DecodedKey::Unicode('<'),
507505
k => DecodedKey::RawKey(k),
508506
}
509507
}
510-
}
508+
}

src/layouts/colemak.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,4 +480,4 @@ impl KeyboardLayout for Colemak {
480480
k => DecodedKey::RawKey(k),
481481
}
482482
}
483-
}
483+
}

src/layouts/de104.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ impl KeyboardLayout for De104Key {
214214
DecodedKey::Unicode('<')
215215
}
216216
}
217-
217+
218218
e => <super::Us104Key as KeyboardLayout>::map_keycode(e, modifiers, handle_ctrl),
219219
}
220220
}

src/layouts/jis109.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/// A standard Japan 106-key (or 109-key including Windows keys) keyboard.
22
/// Has a 2-row high Enter key, with Backslash above.
3-
43
use crate::{DecodedKey, HandleControl, KeyCode, KeyboardLayout, Modifiers};
54

65
pub use super::us104::Us104Key;

src/layouts/uk105.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,4 @@ impl KeyboardLayout for Uk105Key {
6363
e => <super::Us104Key as KeyboardLayout>::map_keycode(e, modifiers, handle_ctrl),
6464
}
6565
}
66-
}
66+
}

src/layouts/us104.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,4 +480,4 @@ impl KeyboardLayout for Us104Key {
480480
k => DecodedKey::RawKey(k),
481481
}
482482
}
483-
}
483+
}

src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,8 +356,7 @@ where
356356
/// We assume the start, stop and parity bits have been processed and
357357
/// verified.
358358
pub fn add_byte(&mut self, byte: u8) -> Result<Option<KeyEvent>, Error> {
359-
let r = S::advance_state(&mut self.decode_state, byte);
360-
r
359+
S::advance_state(&mut self.decode_state, byte)
361360
}
362361

363362
/// Shift a bit into the register.

0 commit comments

Comments
 (0)