Make clippy happy in Windows

This commit is contained in:
Roey Darwish Dror
2019-10-01 20:32:32 +03:00
parent 179ef615df
commit 0bbe81586a
2 changed files with 2 additions and 2 deletions

View File

@@ -51,7 +51,7 @@ pub fn self_update() -> Result<(), Error> {
.spawn()
.and_then(|mut c| c.wait())
.context(ErrorKind::SelfUpdate)?;
Err(ErrorKind::Upgraded(status))?
return Err(ErrorKind::Upgraded(status).into());
}
}
}

View File

@@ -60,7 +60,7 @@ impl Powershell {
let powershell = require_option(self.path.as_ref())?;
if !Self::has_module(&powershell, "PSWindowsUpdate") {
Err(ErrorKind::SkipStep)?;
return Err(ErrorKind::SkipStep.into());
}
print_separator("Windows Update");