fix: allow dead_code on Drive::emit (DiscStream owns BytesRead emission post-0.13.6 strip)

This commit is contained in:
2026-04-24 21:43:30 -07:00
parent a0f45b6454
commit 3c668c62ae
+3
View File
@@ -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 });