mirror of
https://github.com/orhun/systeroid
synced 2024-10-06 15:49:09 +00:00
refactor(test): apply clippy suggestions
This commit is contained in:
parent
907b337158
commit
b328a11599
|
@ -215,8 +215,10 @@ mod tests {
|
|||
use super::*;
|
||||
#[test]
|
||||
fn test_config() -> Result<()> {
|
||||
let mut config = Config::default();
|
||||
config.display_deprecated = true;
|
||||
let mut config = Config {
|
||||
display_deprecated: true,
|
||||
..Default::default()
|
||||
};
|
||||
config.cli.display_type = DisplayType::Value;
|
||||
config.cli.color.default_color = Color::Blue;
|
||||
config.cli.color.section_colors = HashMap::new();
|
||||
|
@ -224,7 +226,7 @@ mod tests {
|
|||
config.tui.color.fg_color = String::new();
|
||||
let path = PathBuf::from(env!("CARGO_MANIFEST_DIR"))
|
||||
.parent()
|
||||
.unwrap()
|
||||
.expect("parent directory not found")
|
||||
.join("config")
|
||||
.join(DEFAULT_CONFIG);
|
||||
config.parse(Some(path))?;
|
||||
|
|
Loading…
Reference in a new issue