From 129d9418367ad25d5a110b52a3a9832189a30b5f Mon Sep 17 00:00:00 2001 From: Sawyer McLane Date: Mon, 30 Sep 2024 14:50:06 -0600 Subject: [PATCH] (Forgot to format new tests) --- src/listener.rs | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/listener.rs b/src/listener.rs index 32dbec8..e47fe80 100644 --- a/src/listener.rs +++ b/src/listener.rs @@ -478,10 +478,7 @@ mod tests { InputItem::from_str("Shift").unwrap(), InputItem::Key(Key::ShiftLeft) ); - assert_eq!( - InputItem::from_str("a").unwrap(), - InputItem::Key(Key::KeyA) - ); + assert_eq!(InputItem::from_str("a").unwrap(), InputItem::Key(Key::KeyA)); assert_eq!( InputItem::from_str("Left").unwrap(), InputItem::Button(Button::Left) @@ -506,10 +503,7 @@ mod tests { #[test] fn test_map_egui_key_to_rdev_key() { - assert_eq!( - map_egui_key_to_rdev_key(egui::Key::A).unwrap(), - Key::KeyA - ); + assert_eq!(map_egui_key_to_rdev_key(egui::Key::A).unwrap(), Key::KeyA); assert_eq!( map_egui_key_to_rdev_key(egui::Key::Enter).unwrap(), Key::Return @@ -812,4 +806,4 @@ mod tests { let action = InputAction::from_str("b+a+ctrl").unwrap(); assert_eq!(format!("{}", action), "ControlLeft+KeyA+KeyB"); } -} \ No newline at end of file +}