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

View File

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

View File

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