Skip to content

Commit

Permalink
fix some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sigmaSd committed Apr 28, 2022
1 parent fd590fe commit f86ca5d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 17 deletions.
7 changes: 0 additions & 7 deletions src/eltrafico_main/netmonitor/bandwhich.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,6 @@ fn parse_data(raw_output: &str) -> HashMap<String, (f32, f32)> {
.collect()
}

#[derive(Debug)]
pub struct ProgramCurrentSpeed {
name: String,
up: f32,
down: f32,
}

#[test]
fn t_bandwhich() {
gtk::init().unwrap();
Expand Down
7 changes: 0 additions & 7 deletions src/eltrafico_main/netmonitor/nethogs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,3 @@ fn parse_data(raw_output: &str) -> HashMap<String, (f32, f32)> {
})
.collect()
}

#[derive(Debug)]
pub struct ProgramCurrentSpeed {
name: String,
up: f32,
down: f32,
}
6 changes: 3 additions & 3 deletions src/eltrafico_tc/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,10 @@ pub fn ss() -> CatchAll<HashMap<String, Vec<Connection>>> {

#[derive(Debug)]
pub struct Connection {
laddr: String,
pub laddr: String,
pub lport: String,
raddr: String,
rport: String,
pub raddr: String,
pub rport: String,
}

impl Connection {
Expand Down

0 comments on commit f86ca5d

Please sign in to comment.