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

@ -208,7 +208,7 @@ where
T: Deref<Target = str>,
{
fn target_reached(&self) -> Result<bool, Box<dyn Error>> {
if !try!(self.file.target_reached()) {
if !self.file.target_reached()? {
return Ok(false);
}
// TODO: Could try to find out if the server is in the live config
@ -216,7 +216,7 @@ where
}
fn execute(&self) -> Result<(), Box<dyn Error>> {
try!(self.file.execute());
self.file.execute()?;
self
.command_runner
.run_successfully("systemctl", &["reload-or-restart", "nginx"])