Skip to content

Commit

Permalink
Fix Rust-1.62 clippy::is-digit-ascii-radix lint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
MarijnS95 committed Jul 4, 2022
1 parent 5747e07 commit 1e87270
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ndk-build/src/ndk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ impl Ndk {
.filter_map(|path| path.ok())
.filter(|path| path.path().is_dir())
.filter_map(|path| path.file_name().into_string().ok())
.filter(|name| name.chars().next().unwrap().is_digit(10))
.filter(|name| name.chars().next().unwrap().is_ascii_digit())
.max()
.ok_or(NdkError::BuildToolsNotFound)?;

Expand Down

0 comments on commit 1e87270

Please sign in to comment.