diff options
author | Dominik Maier <dmnk@google.com> | 2023-01-05 11:49:58 +0000 |
---|---|---|
committer | Dominik Maier <dmnk@google.com> | 2023-01-05 11:49:58 +0000 |
commit | a8b6365a90e09a635907f0c257667e505255910a (patch) | |
tree | a57ba75bc4be94965ebbac55f9da097068ebe78f /custom_mutators/libafl_base/src/lib.rs | |
parent | aa39921e49f9bd20a4cade0ba76688fc31f35b12 (diff) | |
download | afl++-a8b6365a90e09a635907f0c257667e505255910a.tar.gz |
LibAFL custom mutator: unused variables with underscores
Diffstat (limited to 'custom_mutators/libafl_base/src/lib.rs')
-rw-r--r-- | custom_mutators/libafl_base/src/lib.rs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/custom_mutators/libafl_base/src/lib.rs b/custom_mutators/libafl_base/src/lib.rs index dc1c5e0c..bae11e1f 100644 --- a/custom_mutators/libafl_base/src/lib.rs +++ b/custom_mutators/libafl_base/src/lib.rs @@ -1,5 +1,4 @@ #![cfg(unix)] -#![allow(unused_variables)] use serde::{Deserialize, Deserializer, Serialize, Serializer}; use std::{ @@ -77,21 +76,21 @@ impl Corpus for AFLCorpus { } #[inline] - fn add(&mut self, testcase: Testcase<BytesInput>) -> Result<usize, Error> { + fn add(&mut self, _testcase: Testcase<BytesInput>) -> Result<usize, Error> { unimplemented!(); } #[inline] fn replace( &mut self, - idx: usize, - testcase: Testcase<BytesInput>, + _idx: usize, + _testcase: Testcase<BytesInput>, ) -> Result<Testcase<Self::Input>, Error> { unimplemented!(); } #[inline] - fn remove(&mut self, idx: usize) -> Result<Option<Testcase<BytesInput>>, Error> { + fn remove(&mut self, _idx: usize) -> Result<Option<Testcase<BytesInput>>, Error> { unimplemented!(); } @@ -235,7 +234,7 @@ impl CustomMutator for LibAFLBaseCustomMutator { fn fuzz<'b, 's: 'b>( &'s mut self, buffer: &'b mut [u8], - add_buff: Option<&[u8]>, + _add_buff: Option<&[u8]>, max_size: usize, ) -> Result<Option<&'b [u8]>, Self::Error> { self.state.set_max_size(max_size); |