From fd9524eaf55a73837590200c1a745ddcb8a17ab0 Mon Sep 17 00:00:00 2001 From: Angelo Fallaria Date: Wed, 2 Feb 2022 05:44:27 +0800 Subject: [PATCH] style: remove some newlines in start of parse_config --- src/config.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/config.rs b/src/config.rs index 88c141f..7988336 100644 --- a/src/config.rs +++ b/src/config.rs @@ -46,9 +46,7 @@ pub fn parse_config(path: path::PathBuf) -> Result, Error> { // Find file let mut file = File::open(path)?; - let mut contents = String::new(); - file.read_to_string(&mut contents)?; let key_to_evdev_key: HashMap<&str, evdev::Key> = HashMap::from([