From 39364c02348fabd8ffd97d5914257c295bf2fcdc Mon Sep 17 00:00:00 2001 From: buffet Date: Wed, 9 Jan 2019 10:25:49 +0100 Subject: [PATCH] rustfmt --- src/input/keyboard.rs | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/input/keyboard.rs b/src/input/keyboard.rs index 3a59a58..ec1dc18 100644 --- a/src/input/keyboard.rs +++ b/src/input/keyboard.rs @@ -16,13 +16,15 @@ impl input::keyboard::Handler for Keyboard { for key in key_event.pressed_keys() { match key { keysyms::KEY_Escape => compositor::terminate(), - keysyms::KEY_XF86Switch_VT_1 ..= keysyms::KEY_XF86Switch_VT_12 => { - compositor_handle.run(|compositor| { - let backend = compositor.backend_mut(); - if let Some(mut session) = backend.get_session() { - session.change_vt(key - keysyms::KEY_XF86Switch_VT_1 + 1); - } - }).unwrap(); + keysyms::KEY_XF86Switch_VT_1..=keysyms::KEY_XF86Switch_VT_12 => { + compositor_handle + .run(|compositor| { + let backend = compositor.backend_mut(); + if let Some(mut session) = backend.get_session() { + session.change_vt(key - keysyms::KEY_XF86Switch_VT_1 + 1); + } + }) + .unwrap(); } _ => {} }