f3ceb54d3a
Since rustfmt has moved away from syntex the overflow seen in issue 1211 is no longer a problem. This commit adds a test to verify that.
14 lines
336 B
Rust
14 lines
336 B
Rust
fn main() {
|
|
for iface in &ifaces {
|
|
match iface.addr {
|
|
get_if_addrs::IfAddr::V4(ref addr) => match addr.broadcast {
|
|
Some(ip) => {
|
|
sock.send_to(&buf, (ip, 8765)).expect("foobar");
|
|
}
|
|
_ => (),
|
|
},
|
|
_ => (),
|
|
};
|
|
}
|
|
}
|