Fix SimplePrintingMonitor (#1164)

This commit is contained in:
Arpan Kapoor 2023-03-22 20:09:07 +05:30 committed by GitHub
parent 3f7d35bfdc
commit d98384e582
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -319,12 +319,21 @@ impl Default for NopMonitor {
#[cfg(feature = "std")]
/// Tracking monitor during fuzzing that just prints to `stdout`.
#[derive(Debug, Clone, Default)]
#[derive(Debug, Clone)]
pub struct SimplePrintingMonitor {
start_time: Duration,
client_stats: Vec<ClientStats>,
}
impl Default for SimplePrintingMonitor {
fn default() -> Self {
Self {
start_time: current_time(),
client_stats: Vec::new(),
}
}
}
#[cfg(feature = "std")]
impl SimplePrintingMonitor {
/// Create a new [`SimplePrintingMonitor`]