warning free
This commit is contained in:
parent
73e95331f9
commit
629287251f
@ -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()
|
||||
|
@ -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 },
|
||||
|
||||
|
@ -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 {})
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user