Update rustfmt
This commit is contained in:
parent
f4f738c898
commit
64e20b371b
29 changed files with 179 additions and 206 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue