diff --git a/src/core/config.rs b/src/core/config.rs index f296440..01f55f2 100644 --- a/src/core/config.rs +++ b/src/core/config.rs @@ -105,13 +105,13 @@ impl Config { mod tests { use super::*; use std::path::Path; - + // create a clean default config file for testing fn create_default_config_file() { let toml = toml::to_string(&Config::default()).unwrap(); fs::write(&*CONFIG_FILE, toml).expect("Could not write config file to disk!"); } - + #[test] fn test_create_default_config_file() { create_default_config_file(); @@ -119,7 +119,7 @@ mod tests { } #[test] - fn test_load_configuration_file(){ + fn test_load_configuration_file() { create_default_config_file(); let config = Config::load_configuration_file(); assert_eq!(config.devices.len(), 0); @@ -151,4 +151,4 @@ mod tests { fn test_config_file_path() { assert_eq!(&*CONFIG_FILE, Path::new(&*CONFIG_DIR.join("config.toml"))); } -} \ No newline at end of file +} diff --git a/src/gui/style.rs b/src/gui/style.rs index 09a59e9..71a4388 100644 --- a/src/gui/style.rs +++ b/src/gui/style.rs @@ -592,4 +592,4 @@ mod tests { assert_ne!(palette.normal.error, Color::BLACK); assert_ne!(palette.bright.error, Color::BLACK); } -} \ No newline at end of file +}