warning free

This commit is contained in:
Dominik Maier 2020-11-14 23:21:43 +01:00
parent 73e95331f9
commit 629287251f
3 changed files with 3 additions and 4 deletions

View File

@ -367,8 +367,7 @@ mod tests {
fn test_queuecorpus() {
let rand: Rc<_> = DefaultRand::preseeded().into();
let mut q = QueueCorpus::new(OnDiskCorpus::new(&rand, PathBuf::from("fancy/path")));
let i = BytesInput::new(vec![0; 4]);
let t: Rc<_> = Testcase::with_filename(i, PathBuf::from("fancyfile")).into();
let t: Rc<_> = Testcase::with_filename(BytesInput::new(vec![0 as u8; 4]), PathBuf::from("fancyfile")).into();
q.add(t);
let filename = q
.next()

View File

@ -18,7 +18,7 @@ pub trait TestcaseMetadata {
fn name(&self) -> &'static str;
}
enum FileBackedTestcase<I, P> {
pub enum FileBackedTestcase<I, P> {
/// A testcase on disk, not yet loaded
Stored { filename: P },

View File

@ -202,7 +202,7 @@ mod tests {
fn serialize(&self) -> Result<&[u8], AflError> {
Ok("NOP".as_bytes())
}
fn deserialize(buf: &[u8]) -> Result<Self, AflError> {
fn deserialize(_buf: &[u8]) -> Result<Self, AflError> {
Ok(Self {})
}
}