aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSascha Grunert <mail@saschagrunert.de>2017-03-18 11:53:45 +0100
committerSascha Grunert <mail@saschagrunert.de>2017-03-18 11:53:45 +0100
commit0a5693340c76b536c49a483ce73374515d0b1701 (patch)
treef5ea607292da88b3c065304049a6af99adf7126b /src
parentAdded workflow guideline to README (diff)
downloadwireguard-rs-0a5693340c76b536c49a483ce73374515d0b1701.tar.xz
wireguard-rs-0a5693340c76b536c49a483ce73374515d0b1701.zip
Cleanup some code parts
Diffstat (limited to 'src')
-rw-r--r--src/error.rs1
-rw-r--r--src/main.rs3
2 files changed, 1 insertions, 3 deletions
diff --git a/src/error.rs b/src/error.rs
index db5edba..905d0e7 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -22,4 +22,3 @@ impl From<Error> for io::Error {
io::Error::new(io::ErrorKind::Other, error.description())
}
}
-
diff --git a/src/main.rs b/src/main.rs
index 18fff82..326639c 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -48,8 +48,7 @@ fn run() -> Result<()> {
}
// Get the CLI matches
- let interface_name = matches.value_of("interface_name")
- .ok_or_else(|| "No 'interface_name' provided")?;
+ let interface_name = matches.value_of("interface_name").ok_or_else(|| "No 'interface_name' provided")?;
// Create a `WireGuard` instance
let wireguard = WireGuard::new(interface_name)?;