We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 757c7f1 commit bd2d120Copy full SHA for bd2d120
rustygeard/src/main.rs
@@ -75,8 +75,10 @@ fn main() -> ExitCode {
75
.expect("default_value should ensure this");
76
env_logger::init();
77
78
- info!("Binding to {}", listen);
79
- let address = listen.parse().unwrap();
+ info!("Will listen at {}", listen);
+ let address = listen
80
+ .parse()
81
+ .expect("Anything passed to listen must parse into a SocketAddr");
82
#[cfg(feature = "tls")]
83
let tls = match matches.get_flag("tls") {
84
false => None,
0 commit comments