Skip to content

Commit 452f4bc

Browse files
committed
clippy fmt fixing all the stuff
1 parent 5c151e8 commit 452f4bc

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

libafl/src/events/llmp.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,10 @@ use crate::{
5252
inputs::{Input, InputConverter, UsesInput},
5353
monitors::Monitor,
5454
observers::ObserversTuple,
55-
prelude::HasScalabilityMonitor,
56-
state::{HasClientPerfMonitor, HasExecutions, HasLastReportTime, HasMetadata, UsesState},
55+
state::{
56+
HasClientPerfMonitor, HasExecutions, HasLastReportTime, HasMetadata, HasScalabilityMonitor,
57+
UsesState,
58+
},
5759
Error,
5860
};
5961

libafl/src/monitors/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,6 @@ pub struct ClientPerfMonitor {
611611
timer_start: Option<u64>,
612612
}
613613

614-
#[cfg(feature = "scalability_introspection")]
615614
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
616615
/// Count the imported testcase from other nodes that came with observers
617616
pub struct ScalabilityMonitor {
@@ -621,9 +620,9 @@ pub struct ScalabilityMonitor {
621620
pub testcase_without_observers: usize,
622621
}
623622

624-
#[cfg(feature = "scalability_introspection")]
625623
impl ScalabilityMonitor {
626624
/// Constructor
625+
#[must_use]
627626
pub fn new() -> Self {
628627
Self {
629628
testcase_with_observers: 0,

libafl/src/state/mod.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,14 @@ use libafl_bolts::{
1919
};
2020
use serde::{de::DeserializeOwned, Deserialize, Serialize};
2121

22-
#[cfg(feature = "scalability_introspection")]
23-
use crate::monitors::ScalabilityMonitor;
2422
use crate::{
2523
corpus::{Corpus, CorpusId, HasTestcase, Testcase},
2624
events::{Event, EventFirer, LogSeverity},
2725
feedbacks::Feedback,
2826
fuzzer::{Evaluator, ExecuteInputResult},
2927
generators::Generator,
3028
inputs::{Input, UsesInput},
31-
monitors::ClientPerfMonitor,
29+
monitors::{ClientPerfMonitor, ScalabilityMonitor},
3230
Error,
3331
};
3432

@@ -911,7 +909,7 @@ impl<I, C, R, SC> HasScalabilityMonitor for StdState<I, C, R, SC> {
911909
unimplemented!()
912910
}
913911

914-
fn scalability_monitor_mut(&mut self) -> &ScalabilityMonitor {
912+
fn scalability_monitor_mut(&mut self) -> &mut ScalabilityMonitor {
915913
unimplemented!()
916914
}
917915
}

0 commit comments

Comments
 (0)