Skip to content

Commit

Permalink
fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
pythops committed Sep 25, 2024
1 parent f7af4dd commit c0f872e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 2 deletions.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion oryx-tui/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use std::time::Duration;
use std::{error, thread};
use tui_big_text::{BigText, PixelSize};

use crate::alert::alert::Alert;
use crate::alerts::alert::Alert;
use crate::bandwidth::Bandwidth;
use crate::filters::filter::Filter;
use crate::filters::fuzzy::{self, Fuzzy};
Expand Down
6 changes: 6 additions & 0 deletions oryx-tui/src/filters/filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ pub struct Filter {
pub egress_channel: FilterChannel,
}

impl Default for Filter {
fn default() -> Self {
Self::new()
}
}

impl Filter {
pub fn new() -> Self {
Self {
Expand Down
2 changes: 1 addition & 1 deletion oryx-tui/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ pub mod packets {
pub mod transport;
}

pub mod alert {
pub mod alerts {
pub mod alert;
pub mod syn_flood;
}

0 comments on commit c0f872e

Please sign in to comment.