Skip to content

Commit

Permalink
Fix clippy lint from Rust 1.84
Browse files Browse the repository at this point in the history
  • Loading branch information
tirr-c authored and veluca93 committed Jan 18, 2025
1 parent 66ea514 commit f0d5b30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jxl_macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ pub fn for_each_test_file(input: TokenStream) -> TokenStream {
for entry in fs::read_dir(test_dir).unwrap() {
let entry = entry.unwrap();
let path = entry.path();
if path.extension().map_or(false, |ext| ext == "jxl") {
if path.extension().is_some_and(|ext| ext == "jxl") {
let filename = path.file_name().unwrap().to_string_lossy();
let test_name = format!("{}_{}", fn_name, filename.strip_suffix(".jxl").unwrap());
let test_name = Ident::new(&test_name, fn_name.span());
Expand Down

0 comments on commit f0d5b30

Please sign in to comment.