mirror of
https://github.com/Llewellynvdm/starship.git
synced 2025-02-14 09:50:23 +00:00
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…
x
Reference in New Issue
Block a user