mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-04-26 15:39:59 -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
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user