]> git.nihav.org Git - nihav.git/commitdiff
core: implement Default for NATimePoint
authorKostya Shishkov <kostya.shishkov@gmail.com>
Thu, 9 Jul 2020 08:48:44 +0000 (10:48 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Thu, 9 Jul 2020 08:48:44 +0000 (10:48 +0200)
nihav-core/src/frame.rs

index e6757cf51c0592a48efe2fcf53a48dcf9a1fcc1b..80f1adf4c4b8b6b5e3511b0610ee104e47089492 100644 (file)
@@ -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 {