Skip to content

Commit 8cd9a64

Browse files
d-e-s-odanielocfb
authored andcommitted
libbpf-cargo: Allow absolute path usage in generated skeleton
Allow the clippy::absolute_paths lint so that references to items specified by absolute path are not flagged, if this lint is enabled in client code. Signed-off-by: Daniel Müller <[email protected]>
1 parent 0933dab commit 8cd9a64

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libbpf-cargo/src/gen/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -811,6 +811,7 @@ fn gen_skel_contents(_debug: bool, raw_obj_name: &str, obj_file_path: &Path) ->
811811
#[allow(dead_code)]
812812
#[allow(non_snake_case)]
813813
#[allow(non_camel_case_types)]
814+
#[allow(clippy::absolute_paths)]
814815
#[allow(clippy::transmute_ptr_to_ref)]
815816
#[allow(clippy::upper_case_acronyms)]
816817
#[warn(single_use_lifetimes)]

0 commit comments

Comments
 (0)