don't format key lookup tables

This commit is contained in:
bunnie 2024-01-14 22:53:45 +08:00
parent 425e48ed45
commit 11f9552b96
4 changed files with 5 additions and 1 deletions

View file

@ -1,6 +1,7 @@
use crate::{RowCol, ScanCode};
/// Compute the azerty key mapping of row/col to key tuples
#[rustfmt::skip]
pub(crate) fn map_azerty(code: RowCol) -> ScanCode {
let rc = (code.r, code.c);
@ -70,4 +71,4 @@ pub(crate) fn map_azerty(code: RowCol) -> ScanCode {
_ => ScanCode {key: None, shift: None, hold: None, alt: None}
}
}
}

View file

@ -1,5 +1,6 @@
use crate::{RowCol, ScanCode};
/// Compute the dvorak key mapping of row/col to key tuples
#[rustfmt::skip]
pub(crate) fn map_dvorak(code: RowCol) -> ScanCode {
let rc = (code.r, code.c);

View file

@ -1,6 +1,7 @@
use crate::{RowCol, ScanCode};
/// Compute the qwerty key mapping of row/col to key tuples
#[rustfmt::skip]
pub(crate) fn map_qwerty(code: RowCol) -> ScanCode {
let rc = (code.r, code.c);

View file

@ -1,6 +1,7 @@
use crate::{RowCol, ScanCode};
/// Compute the qwertz key mapping of row/col to key tuples
#[rustfmt::skip]
pub(crate) fn map_qwertz(code: RowCol) -> ScanCode {
let rc = (code.r, code.c);