From 3eb07737f151155d33c19d7c4cbaef8aefdd936c Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Fri, 13 Oct 2023 13:55:15 -0700 Subject: [PATCH] build.rs: Address `clippy::ptr_arg`. --- build.rs | 2 +- mk/clippy.sh | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/build.rs b/build.rs index b7d28fac3..c69ba58d1 100644 --- a/build.rs +++ b/build.rs @@ -751,7 +751,7 @@ fn asm_srcs(perlasm_src_dsts: Vec<(PathBuf, PathBuf)>) -> Vec { .collect::>() } -fn is_perlasm(path: &PathBuf) -> bool { +fn is_perlasm(path: &Path) -> bool { path.extension().unwrap().to_str().unwrap() == "pl" } diff --git a/mk/clippy.sh b/mk/clippy.sh index 905706212..bfc38959a 100755 --- a/mk/clippy.sh +++ b/mk/clippy.sh @@ -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 \