mirror of
https://github.com/starship/starship.git
synced 2026-06-21 02:02:14 +07:00
chore: fix clippy warnings for rust 1.68 (#4983)
This commit is contained in:
+1
-1
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user