Add implement Default on types with ::new

This fixes a clippy lint warning
This commit is contained in:
Sashanoraa
2025-03-26 00:21:40 -04:00
committed by Will Greenberg
parent 034e0632e4
commit 04652d2097
3 changed files with 18 additions and 0 deletions

View File

@@ -110,6 +110,12 @@ pub struct Harness {
analyzers: Vec<Box<dyn Analyzer + Send>>,
}
impl Default for Harness {
fn default() -> Self {
Self::new()
}
}
impl Harness {
pub fn new() -> Self {
Self { analyzers: Vec::new() }

View File

@@ -9,6 +9,12 @@ pub struct ImsiRequestedAnalyzer {
packet_num: usize,
}
impl Default for ImsiRequestedAnalyzer {
fn default() -> Self {
Self::new()
}
}
impl ImsiRequestedAnalyzer {
pub fn new() -> Self {
Self { packet_num: 0 }