Skip to content

Commit 7353a85

Browse files
committed
fix some lints
1 parent cf98f49 commit 7353a85

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/networking/manage_packets.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,13 +251,13 @@ pub fn modify_or_insert_in_map(
251251
// determine upper layer service
252252
service = get_service(key, traffic_direction);
253253
// determine process
254-
if let Some(local_port) = get_local_port(&key, traffic_direction) {
254+
if let Some(local_port) = get_local_port(key, traffic_direction) {
255255
let processes = listeners::get_processes_by_port(local_port);
256256
process = processes
257-
.iter()
257+
.into_iter()
258258
.flatten()
259259
.next()
260-
.map_or("?".to_string(), |p| p.name.to_owned());
260+
.map_or("?".to_string(), |p| p.name);
261261
}
262262
};
263263

0 commit comments

Comments
 (0)