소스 검색

Revert "bpf: appease nightly lint"

This reverts commit 9861c1446efbd7303bf9485c864d5a00853368bd.

This no longer warns. See
https://github.com/rust-lang/rust/commit/d95d6ceecb372c66ed18a4e7a0bbb7.
Tamir Duberstein 1 년 전
부모
커밋
fd2fb98792
1개의 변경된 파일1개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 4
      bpf/aya-bpf/src/helpers.rs

+ 1 - 4
bpf/aya-bpf/src/helpers.rs

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