diff options
author | Artem Vorotnikov <artem@vorotnikov.me> | 2019-12-14 09:01:47 +0300 |
---|---|---|
committer | Carl Lerche <me@carllerche.com> | 2019-12-13 22:01:47 -0800 |
commit | d593c5b051f07bde5117122216a356632986b6dd (patch) | |
tree | 87df3c4dd3a4cda23ae1125e8b78358804385edb /examples/udp-client.rs | |
parent | 91ecb4b4c2ec202b6754ccb5fb266a84fe3a7327 (diff) |
chore: remove benches and fix/work around clippy lints (#1952)
Diffstat (limited to 'examples/udp-client.rs')
-rw-r--r-- | examples/udp-client.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/udp-client.rs b/examples/udp-client.rs index 5437daf6..a191033d 100644 --- a/examples/udp-client.rs +++ b/examples/udp-client.rs @@ -44,7 +44,7 @@ fn get_stdin_data() -> Result<Vec<u8>, Box<dyn std::error::Error>> { async fn main() -> Result<(), Box<dyn Error>> { let remote_addr: SocketAddr = env::args() .nth(1) - .unwrap_or("127.0.0.1:8080".into()) + .unwrap_or_else(|| "127.0.0.1:8080".into()) .parse()?; // We use port 0 to let the operating system allocate an available port for us. |