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
This commit is contained in:
deepsource-autofix[bot] 2024-09-25 19:24:54 +00:00 committed by GitHub
commit 7603c0f767
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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);
}
}
}