Skip to content

Commit

Permalink
Merge pull request #861 from tamird/appease-lint
Browse files Browse the repository at this point in the history
Appease new nightly lints
  • Loading branch information
tamird authored Jan 7, 2024
2 parents e1aefa4 + 9861c14 commit 604742a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion aya/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@
unused_macro_rules,
unused_qualifications,
//unused_results,
unused_tuple_struct_fields,
)]
#![allow(clippy::missing_safety_doc, clippy::len_without_is_empty)]
#![cfg_attr(
Expand Down
5 changes: 4 additions & 1 deletion bpf/aya-bpf/src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,10 @@ pub use bpf_printk;
/// Argument ready to be passed to `printk` BPF helper.
#[repr(transparent)]
#[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 {
/// Manually construct a `printk` BPF helper argument.
Expand Down

0 comments on commit 604742a

Please sign in to comment.