mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
uucore: use is_some_and instead of map_or
This commit is contained in:
@@ -719,7 +719,7 @@ pub fn path_ends_with_terminator(path: &Path) -> bool {
|
||||
path.as_os_str()
|
||||
.encode_wide()
|
||||
.last()
|
||||
.map_or(false, |wide| wide == b'/'.into() || wide == b'\\'.into())
|
||||
.is_some_and(|wide| wide == b'/'.into() || wide == b'\\'.into())
|
||||
}
|
||||
|
||||
/// Checks if the standard input (stdin) is a directory.
|
||||
|
||||
Reference in New Issue
Block a user