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,