chore: fix clippy warnings for rust 1.68 (#4983)

This commit is contained in:
David Knaack 2023-03-11 15:23:30 +09:00 committed by GitHub
parent 06ddab7e36
commit c8520dc9d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ fn parse_nim_version(version_cmd_output: &str) -> Option<&str> {
// First line has the version // First line has the version
.next()? .next()?
.split(' ') .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)] #[cfg(test)]