Skip to content

Commit

Permalink
libbpf-cargo: Allow renamed lint usage in skeleton
Browse files Browse the repository at this point in the history
We have seen several lints get renamed or removed over time. Our
generated skeletons explicitly allow a couple of lints and these may be
affected by such changes as well. To make that less of an event,
silently allow the usage of renamed lints down there.

Signed-off-by: Daniel Müller <deso@posteo.net>
  • Loading branch information
d-e-s-o committed Jan 22, 2025
1 parent 6426bb3 commit 962e5f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libbpf-cargo/src/gen/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -868,6 +868,7 @@ fn gen_skel_contents(raw_obj_name: &str, obj_file_path: &Path) -> Result<String>
pub use self::imp::*;
#[allow(renamed_and_removed_lints)]
#[allow(dead_code)]
#[allow(non_snake_case)]
#[allow(non_camel_case_types)]
Expand Down

0 comments on commit 962e5f5

Please sign in to comment.