Fix latest clippy (#1258)

* Fix latest clippy

* oops needs alloc
This commit is contained in:
Dominik Maier 2023-05-09 13:17:57 +02:00 committed by GitHub
parent fe8c06dd8f
commit 8bd18ef007
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View File

@ -122,8 +122,7 @@ where
_executor: &mut E,
) -> Result<usize, Error> {
let count = self.events.len();
while !self.events.is_empty() {
let event = self.events.pop().unwrap();
while let Some(event) = self.events.pop() {
self.handle_in_client(state, event)?;
}
Ok(count)

View File

@ -69,7 +69,7 @@ where
Self {
gen,
state,
phantom: PhantomData::default(),
phantom: PhantomData,
}
}
}

View File

@ -75,10 +75,12 @@ Welcome to `LibAFL`
#[macro_use]
extern crate std;
#[macro_use]
#[doc(hidden)]
pub extern crate alloc;
#[macro_use]
extern crate static_assertions;
#[cfg(feature = "ctor")]
#[doc(hidden)]
pub use ctor::ctor;
// Re-export derive(SerdeAny)