Skip to content

Commit 3c2a61b

Browse files
committed
Fix clippy warnings
1 parent 534c8dc commit 3c2a61b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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)