Make Clippy happy

This commit is contained in:
Roey Darwish Dror
2019-04-14 11:35:18 +03:00
parent 5ae2d0d473
commit 2872081754
4 changed files with 5 additions and 3 deletions

View File

@@ -100,7 +100,7 @@ pub fn run_composer_update(base_dirs: &BaseDirs, run_type: RunType) -> Result<()
.check_output()
.map_err(|_| Error::from(ErrorKind::SkipStep))
.map(PathBuf::from)
.and_then(|p| p.require())?;
.and_then(PathExt::require)?;
if !composer_home.is_descendant_of(base_dirs.home_dir()) {
Err(ErrorKind::SkipStep)?;