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