diff --git a/src/uucore/src/lib/features/mode.rs b/src/uucore/src/lib/features/mode.rs index 7f102e792..50679d107 100644 --- a/src/uucore/src/lib/features/mode.rs +++ b/src/uucore/src/lib/features/mode.rs @@ -46,7 +46,7 @@ pub fn parse_symbolic( let respect_umask = pos == 0; let last_umask = unsafe { umask(0) }; mode = &mode[pos..]; - while mode.len() > 0 { + while !mode.is_empty() { let (op, pos) = parse_op(mode, None)?; mode = &mode[pos..]; let (mut srwx, pos) = parse_change(mode, fperm, considering_dir);