Format and clippy

This commit is contained in:
Adrian Heine 2019-10-02 23:38:22 +02:00
parent 466b4cb994
commit bc4a898c0a
12 changed files with 17 additions and 27 deletions

View file

@ -3,7 +3,6 @@ use std::error::Error;
use std::ffi::OsStr;
use std::fmt;
use std::io;
use std::path::Path;
use std::path::PathBuf;
use std::process::Output;
@ -23,8 +22,8 @@ pub enum UserServiceError<E: Error> {
}
impl From<io::Error> for UserServiceError<io::Error> {
fn from(err: io::Error) -> UserServiceError<io::Error> {
UserServiceError::ExecError(err)
fn from(err: io::Error) -> Self {
Self::ExecError(err)
}
}