mics(style): apply fmt fixes

This commit is contained in:
Frigyes Erdosi Szucs 2024-09-25 12:26:23 -07:00
commit aeddfdf1bf
No known key found for this signature in database
GPG key ID: B0B05D8121415C57
2 changed files with 5 additions and 5 deletions

View file

@ -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")));
}
}
}

View file

@ -592,4 +592,4 @@ mod tests {
assert_ne!(palette.normal.error, Color::BLACK);
assert_ne!(palette.bright.error, Color::BLACK);
}
}
}