build.rs: Address clippy::ptr_arg.

This commit is contained in:
Brian Smith 2023-10-13 13:55:15 -07:00
parent 64cd0b997e
commit 3eb07737f1
2 changed files with 1 additions and 2 deletions

View File

@ -751,7 +751,7 @@ fn asm_srcs(perlasm_src_dsts: Vec<(PathBuf, PathBuf)>) -> Vec<PathBuf> {
.collect::<Vec<_>>()
}
fn is_perlasm(path: &PathBuf) -> bool {
fn is_perlasm(path: &Path) -> bool {
path.extension().unwrap().to_str().unwrap() == "pl"
}

View File

@ -27,7 +27,6 @@ cargo clippy \
--allow clippy::derive_partial_eq_without_eq \
--allow clippy::identity_op \
--allow clippy::len_without_is_empty \
--allow clippy::ptr_arg \
--allow clippy::let_unit_value \
--allow clippy::many_single_char_names \
--allow clippy::new_without_default \