Fix for fmt, clippy and nextest

This commit is contained in:
Aan
2023-03-09 11:28:11 +07:00
parent aa83e40c4f
commit 703da383a7
2 changed files with 6 additions and 2 deletions

View File

@@ -168,7 +168,7 @@ pub struct Banner {
force_recursion: BannerEntry,
/// represents Configuration.update_app
update_app : BannerEntry,
update_app: BannerEntry,
}
/// implementation of Banner
@@ -671,6 +671,10 @@ by Ben "epi" Risher {} ver: {}"#,
writeln!(&mut writer, "{}", self.force_recursion)?;
}
if config.update_app {
writeln!(&mut writer, "{}", self.update_app)?;
}
if config.scan_limit > 0 {
writeln!(&mut writer, "{}", self.scan_limit)?;
}

View File

@@ -476,7 +476,7 @@ fn config_default_not_random_agent() {
/// parse the test config and see that the value parsed is correct
fn config_update_app() {
let config = setup_config_test();
assert!(config.update_app);
assert!(!config.update_app);
}
#[test]