mirror of https://github.com/aya-rs/aya
aya: appease new nightly clippy lints
``` error: unnecessary qualification --> aya/src/maps/ring_buf.rs:434:22 | 434 | ptr: ptr::NonNull::new(ptr).ok_or( | ^^^^^^^^^^^^^^^^^ | note: the lint level is defined here --> aya/src/lib.rs:72:5 | 72 | unused_qualifications, | ^^^^^^^^^^^^^^^^^^^^^ help: remove the unnecessary path segments | 434 - ptr: ptr::NonNull::new(ptr).ok_or( 434 + ptr: NonNull::new(ptr).ok_or( | error: unnecessary qualification --> aya/src/maps/mod.rs:225:21 | 225 | let mut limit = std::mem::MaybeUninit::<rlimit>::uninit(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | help: remove the unnecessary path segments | 225 - let mut limit = std::mem::MaybeUninit::<rlimit>::uninit(); 225 + let mut limit = mem::MaybeUninit::<rlimit>::uninit(); | error: unnecessary qualification --> aya/src/programs/mod.rs:614:9 | 614 | crate::obj::Program { | ^^^^^^^^^^^^^^^^^^^ | help: remove the unnecessary path segments | 614 - crate::obj::Program { 614 + obj::Program { | error: unnecessary qualification --> aya/src/util.rs:373:14 | 373 | unsafe { std::slice::from_raw_parts(bpf_name.as_ptr() as *const _, length) } | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | help: remove the unnecessary path segments | 373 - unsafe { std::slice::from_raw_parts(bpf_name.as_ptr() as *const _, length) } 373 + unsafe { slice::from_raw_parts(bpf_name.as_ptr() as *const _, length) } | error: unnecessary qualification --> aya/src/maps/mod.rs:1130:47 | 1130 | .copy_from_slice(unsafe { std::mem::transmute(TEST_NAME) }); | ^^^^^^^^^^^^^^^^^^^ | note: the lint level is defined here --> aya/src/lib.rs:72:5 | 72 | unused_qualifications, | ^^^^^^^^^^^^^^^^^^^^^ help: remove the unnecessary path segments | 1130 - .copy_from_slice(unsafe { std::mem::transmute(TEST_NAME) }); 1130 + .copy_from_slice(unsafe { mem::transmute(TEST_NAME) }); | ```pull/373/merge
parent
84ed505275
commit
e38eac6352
Loading…
Reference in New Issue