mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-06-07 13:41:54 -07:00
fix clippy
This commit is contained in:
@@ -224,7 +224,7 @@ impl AnalysisLineNormalizer {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Debug)]
|
#[derive(Serialize, Debug, Default)]
|
||||||
pub struct AnalysisRow {
|
pub struct AnalysisRow {
|
||||||
pub packet_timestamp: Option<DateTime<FixedOffset>>,
|
pub packet_timestamp: Option<DateTime<FixedOffset>>,
|
||||||
pub skipped_message_reason: Option<String>,
|
pub skipped_message_reason: Option<String>,
|
||||||
@@ -233,11 +233,7 @@ pub struct AnalysisRow {
|
|||||||
|
|
||||||
impl AnalysisRow {
|
impl AnalysisRow {
|
||||||
pub fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
Self {
|
Self::default()
|
||||||
packet_timestamp: None,
|
|
||||||
skipped_message_reason: None,
|
|
||||||
events: vec![],
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn is_empty(&self) -> bool {
|
pub fn is_empty(&self) -> bool {
|
||||||
|
|||||||
Reference in New Issue
Block a user