From 7603c0f767257d1cc001844a5cdcee2e03d0d498 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Wed, 25 Sep 2024 19:24:54 +0000 Subject: [PATCH] style: format code with Rustfmt This commit fixes the style issues introduced in 146a159 according to the output from Rustfmt. Details: https://github.com/Universal-Debloater-Alliance/universal-android-debloater-next-generation/pull/654 --- src/core/config.rs | 8 ++++---- src/gui/style.rs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) 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 +}