Make clippy happy

This commit is contained in:
Roey Darwish Dror
2019-09-28 15:13:01 +03:00
parent cfce9775df
commit e548cb4059
6 changed files with 32 additions and 32 deletions

View File

@@ -123,7 +123,7 @@ pub fn run_composer_update(base_dirs: &BaseDirs, run_type: RunType) -> Result<()
.and_then(PathExt::require)?;
if !composer_home.is_descendant_of(base_dirs.home_dir()) {
Err(ErrorKind::SkipStep)?;
return Err(ErrorKind::SkipStep.into());
}
print_separator("Composer");
@@ -149,9 +149,10 @@ pub fn run_remote_topgrade(
#[cfg(unix)]
{
crate::tmux::run_remote_topgrade(hostname, &ssh)?;
Err(ErrorKind::SkipStep)?
Err(ErrorKind::SkipStep.into())
}
#[cfg(not(unix))]
unreachable!("Tmux execution is only implemented in Unix");
} else {
let mut args = vec!["-t", hostname];