Skip to content

Commit

Permalink
fixed clippy warning;
Browse files Browse the repository at this point in the history
  • Loading branch information
ph0llux committed Jul 28, 2024
1 parent 03c80ed commit ad21b8f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/lib/io/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -386,10 +386,7 @@ fn get_xattr_metadata<P: AsRef<Path>>(xattrs: XAttrs, path: P) -> Result<HashMap
if ext_attr.starts_with(XATTR_ATTRNAME_POSIX_ACL) || ext_attr.starts_with(XATTR_ATTRNAME_POSIX_ACL_DEFAULT) {
continue;
}
let value = match xattr::get(path.as_ref(), &ext_attr)? {
Some(value) => value,
None => Vec::new(),
};
let value = xattr::get(path.as_ref(), &ext_attr)?.unwrap_or_default();
metadata_ext_map.insert(ext_attr, value.into());
}
Ok(metadata_ext_map)
Expand Down

0 comments on commit ad21b8f

Please sign in to comment.