mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-04-28 00:20:00 -07:00
Add implement Default on types with ::new
This fixes a clippy lint warning
This commit is contained in:
committed by
Will Greenberg
parent
034e0632e4
commit
04652d2097
@@ -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() }
|
||||
|
||||
Reference in New Issue
Block a user