Skip to content

Commit

Permalink
fix some lints
Browse files Browse the repository at this point in the history
  • Loading branch information
GyulyVGC committed Feb 14, 2025
1 parent cf98f49 commit 7353a85
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/networking/manage_packets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,13 +251,13 @@ pub fn modify_or_insert_in_map(
// determine upper layer service
service = get_service(key, traffic_direction);
// determine process
if let Some(local_port) = get_local_port(&key, traffic_direction) {
if let Some(local_port) = get_local_port(key, traffic_direction) {
let processes = listeners::get_processes_by_port(local_port);
process = processes
.iter()
.into_iter()
.flatten()
.next()
.map_or("?".to_string(), |p| p.name.to_owned());
.map_or("?".to_string(), |p| p.name);
}
};

Expand Down

0 comments on commit 7353a85

Please sign in to comment.