From 0bc221c3de38a5e549cb23cebf74349669310143 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Thu, 9 Jul 2020 10:48:44 +0200 Subject: [PATCH] core: implement Default for NATimePoint --- nihav-core/src/frame.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nihav-core/src/frame.rs b/nihav-core/src/frame.rs index e6757cf..80f1adf 100644 --- a/nihav-core/src/frame.rs +++ b/nihav-core/src/frame.rs @@ -1009,6 +1009,12 @@ pub enum NATimePoint { None, } +impl Default for NATimePoint { + fn default() -> Self { + NATimePoint::None + } +} + impl fmt::Display for NATimePoint { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { -- 2.39.5