From 902361cc94b7ef8fdb1c35e006e8720fe412a19e Mon Sep 17 00:00:00 2001 From: Philipp Eder Date: Wed, 8 May 2024 09:42:56 +0200 Subject: [PATCH] Linting: openvasd: clippy --- rust/openvasd/src/controller/mod.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rust/openvasd/src/controller/mod.rs b/rust/openvasd/src/controller/mod.rs index 48996e426..5e65a0ac4 100644 --- a/rust/openvasd/src/controller/mod.rs +++ b/rust/openvasd/src/controller/mod.rs @@ -451,8 +451,10 @@ mod tests { let scanner = FakeScanner { count: Arc::new(RwLock::new(0)), }; - let mut ns = crate::config::Scheduler::default(); - ns.check_interval = std::time::Duration::from_nanos(10); + let ns = crate::config::Scheduler { + check_interval: std::time::Duration::from_nanos(10), + ..Default::default() + }; let root = "/tmp/openvasd/fetch_results"; let nfp = "../../examples/feed/nasl"; let nofp = "../../examples/feed/notus/advisories";