mirror of
https://github.com/Universal-Debloater-Alliance/universal-android-debloater-next-generation.git
synced 2026-08-09 15:19:11 +02:00
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:
parent
146a15943c
commit
7603c0f767
2 changed files with 5 additions and 5 deletions
|
|
@ -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")));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -592,4 +592,4 @@ mod tests {
|
|||
assert_ne!(palette.normal.error, Color::BLACK);
|
||||
assert_ne!(palette.bright.error, Color::BLACK);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue