From e933f7db4b077901bc976ce30a05fbb94261fd21 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Thu, 2 Apr 2026 17:38:54 +0200 Subject: [PATCH] nihav_core/frame: add default for StreamType --- nihav-core/src/frame.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nihav-core/src/frame.rs b/nihav-core/src/frame.rs index faefff5..f2f955e 100644 --- a/nihav-core/src/frame.rs +++ b/nihav-core/src/frame.rs @@ -1256,7 +1256,7 @@ impl fmt::Display for NAFrame { } /// A list of possible stream types. -#[derive(Debug,Clone,Copy,PartialEq)] +#[derive(Default,Debug,Clone,Copy,PartialEq)] #[allow(dead_code)] pub enum StreamType { /// Video stream. @@ -1268,6 +1268,7 @@ pub enum StreamType { /// Any data stream (or might be an unrecognized audio/video stream). Data, /// Nonexistent stream. + #[default] None, } -- 2.39.5