From b948cd98c62121e7225a3727cf3dc6818caa3ac6 Mon Sep 17 00:00:00 2001 From: Dominik Maier Date: Mon, 15 Jul 2024 23:44:45 +0200 Subject: [PATCH] clippy_nyx --- libafl/src/fuzzer/mod.rs | 2 +- libafl_nyx/src/executor.rs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/libafl/src/fuzzer/mod.rs b/libafl/src/fuzzer/mod.rs index 461f3b07fa..b38127445b 100644 --- a/libafl/src/fuzzer/mod.rs +++ b/libafl/src/fuzzer/mod.rs @@ -827,7 +827,7 @@ where if state.stop_requested() { state.discard_stop_request(); manager.on_shutdown()?; - return Err(Error::shutting_down()) + return Err(Error::shutting_down()); } Ok(id) diff --git a/libafl_nyx/src/executor.rs b/libafl_nyx/src/executor.rs index c62ab796de..d219d1d379 100644 --- a/libafl_nyx/src/executor.rs +++ b/libafl_nyx/src/executor.rs @@ -32,6 +32,7 @@ pub struct NyxExecutor { impl NyxExecutor<(), ()> { /// Create a builder for [`NyxExeuctor`] + #[must_use] pub fn builder() -> NyxExecutorBuilder { NyxExecutorBuilder::new() } @@ -157,6 +158,7 @@ impl Default for NyxExecutorBuilder { } impl NyxExecutorBuilder { + #[must_use] pub fn new() -> Self { Self { stdout: None,