summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/source/issue-1211.rs
blob: 5818736bf6bafa70556233904ffe45b57854520f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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");
                    }
                    _ => ()
                }
            }
            _ => ()
        };
    }
}