mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-08-04 23:17:46 +00:00
Get rid of all warnings on Linux (or at least WSL)
This commit is contained in:
parent
77cc8d39c6
commit
d81d3e3c71
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ use std::error::Error;
|
|||
|
||||
pub fn parse_numeric(fperm: u32, mut mode: &str) -> Result<u32, String> {
|
||||
let (op, pos) = parse_op(mode, Some('='))?;
|
||||
mode = mode[pos..].trim_left_matches('0');
|
||||
mode = mode[pos..].trim_start_matches('0');
|
||||
if mode.len() > 4 {
|
||||
Err(format!("mode is too large ({} > 7777)", mode))
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue