Make Clippy happy
This commit is contained in:
@@ -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)?;
|
||||
|
||||
@@ -96,7 +96,7 @@ impl Distribution {
|
||||
pub fn show_pacnew() {
|
||||
let mut iter = WalkDir::new("/etc")
|
||||
.into_iter()
|
||||
.filter_map(|e| e.ok())
|
||||
.filter_map(Result::ok)
|
||||
.filter(|f| {
|
||||
f.path()
|
||||
.extension()
|
||||
|
||||
Reference in New Issue
Block a user