Fix clippy warning
This commit is contained in:
parent
062d313d00
commit
ed5b112538
1 changed files with 1 additions and 1 deletions
|
@ -214,7 +214,7 @@ fn procfs() -> Result<Vec<(i32, u64)>, Error> {
|
|||
Ok(read_dir("/proc/")
|
||||
.prepend_io(|| "/proc/".into())?
|
||||
.filter_map(StdResult::ok)
|
||||
.filter_map(|s| procfs_meta(s).map_or_else(|_| None, |x| x))
|
||||
.filter_map(|s| procfs_meta(s).unwrap_or(None))
|
||||
.filter_map(|(name, mtime)| {
|
||||
name.to_str()
|
||||
.expect("UTF-8 filename in procfs")
|
||||
|
|
Loading…
Add table
Reference in a new issue