diff options
author | Hristo Venev <hristo@venev.name> | 2019-09-30 14:54:09 +0300 |
---|---|---|
committer | Hristo Venev <hristo@venev.name> | 2019-09-30 15:34:34 +0300 |
commit | e7e12e4c27ba462a9f8e6ec15373d00c3d72bb24 (patch) | |
tree | 67ac67cdb3c7cc6fa9db8b097f9be3db4cbaebd9 /src/wg.rs | |
parent | 5cd9be6edd6cfc6f492907709eb1cfda4a99923f (diff) |
Lowercase errors.
Diffstat (limited to 'src/wg.rs')
-rw-r--r-- | src/wg.rs | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -44,7 +44,7 @@ impl Device { let r = proc.output()?; if !r.status.success() { - return Err(io::Error::new(io::ErrorKind::Other, "Child process failed")); + return Err(io::Error::new(io::ErrorKind::Other, "child process failed")); } let mut out = r.stdout; @@ -52,7 +52,7 @@ impl Device { out.remove(out.len() - 1); } model::Key::from_bytes(&out) - .map_err(|_| io::Error::new(io::ErrorKind::InvalidData, "Invalid public key")) + .map_err(|_| io::Error::new(io::ErrorKind::InvalidData, "invalid public key")) } pub fn apply_diff(&mut self, old: &model::Config, new: &model::Config) -> io::Result<()> { @@ -133,7 +133,7 @@ impl Device { let r = proc.status()?; mem::drop(tmps); if !r.success() { - return Err(io::Error::new(io::ErrorKind::Other, "Child process failed")); + return Err(io::Error::new(io::ErrorKind::Other, "child process failed")); } Ok(()) } |