From 1aae5097b91ab5a4606488deca469323b4c95188 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Tue, 23 Sep 2025 16:52:19 +1000 Subject: [PATCH] aya-log: add `#[must_use]` attribute to `EbpfLogger` --- aya-log/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/aya-log/src/lib.rs b/aya-log/src/lib.rs index c77bfa62..039411c8 100644 --- a/aya-log/src/lib.rs +++ b/aya-log/src/lib.rs @@ -95,6 +95,7 @@ unsafe impl Pod for DisplayHintWrapper {} /// Log messages generated by `aya_log_ebpf` using the [log] crate. /// /// For more details see the [module level documentation](crate). +#[must_use = "Dropping the logger will close the map FD and cause program loading failure."] pub struct EbpfLogger { ring_buf: RingBuf, logger: T,