We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43383b3 commit 4d29a3bCopy full SHA for 4d29a3b
examples/dhcp_client.rs
@@ -42,7 +42,9 @@ fn main() {
42
// This also allows sockets made before a real address is negotiated
43
// via DHCP to update properly afterward.
44
iface.update_ip_addrs(|addrs| {
45
- addrs.push(IpCidr::Ipv4(Ipv4Cidr::new(Ipv4Address::UNSPECIFIED, 0))).unwrap();
+ addrs
46
+ .push(IpCidr::Ipv4(Ipv4Cidr::new(Ipv4Address::UNSPECIFIED, 0)))
47
+ .unwrap();
48
});
49
50
// Create sockets
0 commit comments