Skip to content

Commit 952ae58

Browse files
author
daniel.eades
committed
fixup
1 parent 5f891c8 commit 952ae58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/uucore/src/lib/features/fsxattr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ pub fn apply_xattrs<P: AsRef<Path>>(
7979
/// `true` if the file has extended attributes (indicating an ACL), `false` otherwise.
8080
pub fn has_acl<P: AsRef<Path>>(file: P) -> bool {
8181
// don't use exacl here, it is doing more getxattr call then needed
82-
xattr::list(file).map_or(false, |acl| acl.count() > 0)
82+
xattr::list(file).is_ok_and(|acl| acl.count() > 0)
8383
}
8484

8585
/// Returns the permissions bits of a file or directory which has Access Control List (ACL) entries based on its

0 commit comments

Comments
 (0)