chore: fix clippy warnings for rust 1.68 (#4983)
This commit is contained in:
parent
06ddab7e36
commit
c8520dc9d9
|
@ -64,7 +64,7 @@ fn parse_nim_version(version_cmd_output: &str) -> Option<&str> {
|
|||
// First line has the version
|
||||
.next()?
|
||||
.split(' ')
|
||||
.find(|&s| s.chars().all(|c| ('0'..='9').contains(&c) || c == '.'))
|
||||
.find(|&s| s.chars().all(|c| c.is_ascii_digit() || c == '.'))
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
|
Loading…
Reference in New Issue