Commit 117bee58 authored by Ian Jackson's avatar Ian Jackson
Browse files

bridge config: Use unreachable, not None.expect

parent bb6c98bd
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -245,8 +245,7 @@ impl BridgeConfigBuilder {
                            "`addrs` contains hostname and port, but only numeric addresses are supported for a direct bridge connection",
                        ))
                    } else {
                        // panic! causes a clippy complaint, so panic like this
                        None.expect("BridgeAddr is neither addr nor named")
                        unreachable!("BridgeAddr is neither addr nor named")
                    }
                }).collect::<Result<Vec<SocketAddr>,&str>>().map_err(|problem| inconsist_transp(
                    "addrs",