Skip to content

Commit 64353b2

Browse files
committed
fixed clippy:
1 parent 7d56443 commit 64353b2

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

clippy.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ RUST_BACKTRACE=full cargo clippy --all --all-features --tests -- \
1313
-W clippy::must-use-candidate \
1414
-W clippy::if-not-else \
1515
-W clippy::doc-markdown \
16+
-W clippy::default-trait-access \
1617
-A clippy::type_repetition_in_bounds \
1718
-A clippy::missing-errors-doc \
1819
-A clippy::cast-possible-truncation \

libafl/src/bolts/shmem.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ where
364364
match pipe {
365365
Some(pipe) => {
366366
let ok = [0u8; 4];
367-
let mut ret = ok.clone();
367+
let mut ret = ok;
368368
pipe.read_exact(&mut ret)?;
369369
if ret == ok {
370370
Ok(())

libafl/src/events/llmp.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,7 @@ where
596596
/// restarter and runner, that can be used on systems both with and without `fork` support. The
597597
/// restarter will start a nre process each time the child crashes or timesout.
598598
#[cfg(feature = "std")]
599+
#[allow(clippy::default_trait_access)]
599600
#[derive(Builder, Debug)]
600601
#[builder(pattern = "owned")]
601602
pub struct RestartingMgr<I, S, SP, ST>
@@ -621,6 +622,8 @@ where
621622
}
622623

623624
#[cfg(feature = "std")]
625+
#[allow(clippy::type_complexity)]
626+
#[allow(clippy::too_many_lines)]
624627
impl<I, S, SP, ST> RestartingMgr<I, S, SP, ST>
625628
where
626629
I: Input,

libafl/src/utils.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,7 @@ mod tests {
600600
/// Provides a Launcher, which can be used to launch a fuzzing run on a specified list of cores
601601
#[cfg(feature = "std")]
602602
#[derive(Builder)]
603+
#[allow(clippy::type_complexity)]
603604
#[builder(pattern = "owned")]
604605
pub struct Launcher<'a, I, S, SP, ST>
605606
where
@@ -641,6 +642,7 @@ where
641642
{
642643
/// Launch the broker and the clients and fuzz
643644
#[cfg(all(unix, feature = "std"))]
645+
#[allow(clippy::similar_names)]
644646
pub fn launch(&mut self) -> Result<(), Error> {
645647
let core_ids = core_affinity::get_core_ids().unwrap();
646648
let num_cores = core_ids.len();

0 commit comments

Comments
 (0)