From: Kostya Shishkov Date: Thu, 9 Jul 2020 08:48:44 +0000 (+0200) Subject: core: implement Default for NATimePoint X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=0bc221c3de38a5e549cb23cebf74349669310143;p=nihav.git core: implement Default for NATimePoint --- 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 {