diff --git a/libbpf-cargo/src/gen.rs b/libbpf-cargo/src/gen.rs index 7ac2bc855..22181288e 100644 --- a/libbpf-cargo/src/gen.rs +++ b/libbpf-cargo/src/gen.rs @@ -670,6 +670,9 @@ fn gen_skel_attach(skel: &mut String, object: &mut BpfObj, obj_name: &str) -> Re fn gen_skel_contents(_debug: bool, raw_obj_name: &str, obj_file_path: &Path) -> Result { let mut skel = String::new(); + // TODO: remove the line + // #[allow(clippy::derivable_impls)] + // once Minimum Rust Version updated to 1.62 write!( skel, r#"// SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) @@ -683,6 +686,7 @@ fn gen_skel_contents(_debug: bool, raw_obj_name: &str, obj_file_path: &Path) -> #[allow(non_camel_case_types)] #[allow(clippy::transmute_ptr_to_ref)] #[allow(clippy::upper_case_acronyms)] + #[allow(clippy::derivable_impls)] mod imp {{ use libbpf_rs::libbpf_sys; "#