Skip to content

Commit

Permalink
fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
crepererum committed Oct 25, 2022
1 parent dd6b1cd commit 5bf733e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/flamegraph/color/palettes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ pub(super) mod python {
part.strip_prefix("python")
.or_else(|| part.strip_prefix("Python"))
.map_or(false, |version| {
version.chars().all(|c| c.is_digit(10) || c == '.')
version.chars().all(|c| c.is_ascii_digit() || c == '.')
})
}) || name.starts_with("<built-in")
|| name.starts_with("<method")
Expand Down

0 comments on commit 5bf733e

Please sign in to comment.