From b603c665a9a2ec48de2c4b412876bd015e5ead15 Mon Sep 17 00:00:00 2001 From: Tamir Duberstein Date: Sun, 5 May 2024 16:42:51 -0400 Subject: [PATCH] Deny warnings --- ebpf/aya-ebpf-bindings/src/lib.rs | 3 ++- ebpf/aya-ebpf/src/lib.rs | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ebpf/aya-ebpf-bindings/src/lib.rs b/ebpf/aya-ebpf-bindings/src/lib.rs index ce1031a0..b9037bac 100644 --- a/ebpf/aya-ebpf-bindings/src/lib.rs +++ b/ebpf/aya-ebpf-bindings/src/lib.rs @@ -1,5 +1,6 @@ -#![no_std] #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] +#![deny(warnings)] +#![no_std] #[cfg(bpf_target_arch = "x86_64")] mod x86_64; diff --git a/ebpf/aya-ebpf/src/lib.rs b/ebpf/aya-ebpf/src/lib.rs index d02b0229..04a4002e 100644 --- a/ebpf/aya-ebpf/src/lib.rs +++ b/ebpf/aya-ebpf/src/lib.rs @@ -16,6 +16,7 @@ #![cfg_attr(unstable, feature(never_type))] #![cfg_attr(target_arch = "bpf", feature(asm_experimental_arch))] #![allow(clippy::missing_safety_doc)] +#![deny(warnings)] #![warn(clippy::cast_lossless, clippy::cast_sign_loss)] #![no_std]