diff --git a/crates/nu-command/src/filesystem/touch.rs b/crates/nu-command/src/filesystem/touch.rs index bb10fd2be0..8f3e755595 100644 --- a/crates/nu-command/src/filesystem/touch.rs +++ b/crates/nu-command/src/filesystem/touch.rs @@ -124,7 +124,7 @@ impl Command for Touch { let size = val.len(); // Each stamp is a 2 digit number and the whole stamp must not be less than 4 or greater than 7 pairs - if (size % 2 != 0 || !(8..=14).contains(&size)) || val.parse::().is_err() { + if (size % 2 != 0 || !(8..=14).contains(&size)) || val.parse::().is_err() { return Err(ShellError::UnsupportedInput( "input has an invalid timestamp".to_string(), span,