aya-log: add `#[must_use]` attribute to `EbpfLogger`

reviewable/pr1351/r1
Thomas Eizinger 2 months ago committed by Tamir Duberstein
parent 30182463bd
commit e2a68ee384

@ -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<T> {
ring_buf: RingBuf<MapData>,
logger: T,

Loading…
Cancel
Save