diff options
author | Jake McGinty <me@jake.su> | 2018-04-24 22:19:12 -0700 |
---|---|---|
committer | Jake McGinty <me@jake.su> | 2018-04-24 22:19:12 -0700 |
commit | e2ec1715504ad12ffddecd180bd39e73ee55c4f1 (patch) | |
tree | c9b337bcdfb783a56dffed55a95b5b06ffe34c74 /src/main.rs | |
parent | udp: clean up debug output (diff) | |
download | wireguard-rs-e2ec1715504ad12ffddecd180bd39e73ee55c4f1.tar.xz wireguard-rs-e2ec1715504ad12ffddecd180bd39e73ee55c4f1.zip |
global: fix up clippies
Diffstat (limited to '')
-rw-r--r-- | src/main.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs index 0208aaf..0c49343 100644 --- a/src/main.rs +++ b/src/main.rs @@ -69,9 +69,8 @@ fn main() { daemonize().expect("failed to daemonize"); } - match Interface::new(&opt.interface).start() { - Err(e) => error!("failed to start interface: {}", e), - _ => {} + if let Err(e) = Interface::new(&opt.interface).start() { + error!("failed to start interface: {}", e); } } |