Merge pull request #861 from tamird/appease-lint

Appease new nightly lints
pull/862/head
Tamir Duberstein 10 months ago committed by GitHub
commit 604742a2f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -71,7 +71,6 @@
unused_macro_rules, unused_macro_rules,
unused_qualifications, unused_qualifications,
//unused_results, //unused_results,
unused_tuple_struct_fields,
)] )]
#![allow(clippy::missing_safety_doc, clippy::len_without_is_empty)] #![allow(clippy::missing_safety_doc, clippy::len_without_is_empty)]
#![cfg_attr( #![cfg_attr(

@ -734,7 +734,10 @@ pub use bpf_printk;
/// Argument ready to be passed to `printk` BPF helper. /// Argument ready to be passed to `printk` BPF helper.
#[repr(transparent)] #[repr(transparent)]
#[derive(Copy, Clone)] #[derive(Copy, Clone)]
pub struct PrintkArg(u64); pub struct PrintkArg(
#[allow(dead_code)] // TODO(https://github.com/rust-lang/rust/issues/119659): Remove.
u64,
);
impl PrintkArg { impl PrintkArg {
/// Manually construct a `printk` BPF helper argument. /// Manually construct a `printk` BPF helper argument.

Loading…
Cancel
Save