From 3c668c62ae7facb63bb537832606bddd67bcc825 Mon Sep 17 00:00:00 2001 From: Matthew Jackson Date: Fri, 24 Apr 2026 21:43:30 -0700 Subject: [PATCH] fix: allow dead_code on Drive::emit (DiscStream owns BytesRead emission post-0.13.6 strip) --- src/drive/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/drive/mod.rs b/src/drive/mod.rs index 7588a59..7083fd3 100644 --- a/src/drive/mod.rs +++ b/src/drive/mod.rs @@ -115,6 +115,9 @@ impl Drive { self.event_fn = Some(Box::new(f)); } + #[allow(dead_code)] // public on_event registration kept; Drive currently + // has no internal emission sites after the 0.13.6 recovery strip. + // DiscStream is the BytesRead source. Plan to drop on_event in 0.14. fn emit(&self, kind: EventKind) { if let Some(ref f) = self.event_fn { f(Event { kind });