Update rustfmt

This commit is contained in:
Adrian Heine 2019-09-24 21:56:31 +02:00
parent f4f738c898
commit 64e20b371b
29 changed files with 179 additions and 206 deletions

View file

@ -93,9 +93,9 @@ impl<'a, C: CommandRunner, A: 'a + UserAdder> fmt::Display for User<'a, C, A> {
impl<'a, C: CommandRunner, A: 'a + UserAdder> Symbol for User<'a, C, A> {
fn target_reached(&self) -> Result<bool, Box<dyn Error>> {
let output = try!(self
let output = self
.command_runner
.run_with_args("getent", &["passwd", &*self.user_name]));
.run_with_args("getent", &["passwd", &*self.user_name])?;
match output.status.code() {
Some(2) => Ok(false),
Some(0) => Ok(true),