Skip to content

Commit 41c2216

Browse files
committed
fixup clippy 1.84 warnings
Signed-off-by: Arthur Gautier <arthur.gautier@arista.com>
1 parent acec889 commit 41c2216

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tss-esapi-sys/build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,11 +466,11 @@ pub mod tpm2_tss {
466466
.filter(|file| {
467467
file.extension()
468468
.and_then(|ext| ext.to_str())
469-
.map_or(false, |file_ext| ["so", "lib"].contains(&file_ext))
469+
.is_some_and(|file_ext| ["so", "lib"].contains(&file_ext))
470470
&& file
471471
.file_stem()
472472
.and_then(|stem| stem.to_str())
473-
.map_or(false, |file_name| file_name.contains(lib_name))
473+
.is_some_and(|file_name| file_name.contains(lib_name))
474474
})
475475
.peekable();
476476

0 commit comments

Comments
 (0)