codecs: implement Default trait for MV
authorKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 11 May 2019 12:50:51 +0000 (14:50 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 11 May 2019 12:50:51 +0000 (14:50 +0200)
nihav-core/src/codecs/mod.rs

index 8225dd0dcbf08ff18cdf7eddd689458c14596da1..490c7c79b8ad31ca3445c637513a4a0dc1897b33 100644 (file)
@@ -162,7 +162,7 @@ impl Default for IPBShuffler {
     fn default() -> Self { Self { lastframe: None, nextframe: None } }
 }
 
-#[derive(Debug,Clone,Copy,PartialEq)]
+#[derive(Debug,Clone,Copy,Default,PartialEq)]
 pub struct MV {
     pub x: i16,
     pub y: i16,