Skip to content

Commit 9900400

Browse files
nightkrTechassi
authored andcommitted
Fix clippy warnings
1 parent bfdd268 commit 9900400

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

crates/containerdebug/src/main.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ fn get_network_info() -> SystemNetworkInfo {
138138
let mut ip_set: HashSet<IpAddr> = HashSet::new();
139139
for (_, ip_addrs) in interfaces.iter() {
140140
for ip_addr in ip_addrs {
141-
ip_set.insert(ip_addr.clone());
141+
ip_set.insert(*ip_addr);
142142
}
143143
}
144144

@@ -174,10 +174,9 @@ fn get_network_info() -> SystemNetworkInfo {
174174
}
175175
}
176176

177-
let system_network_information = SystemNetworkInfo {
177+
SystemNetworkInfo {
178178
network_interfaces: interfaces,
179179
reverse_lookups,
180180
forward_lookups,
181-
};
182-
system_network_information
181+
}
183182
}

0 commit comments

Comments
 (0)