From: Kostya Shishkov Date: Sat, 11 May 2019 12:50:51 +0000 (+0200) Subject: codecs: implement Default trait for MV X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=3a1d1cfa508161305c7e2499dab3196ded109faf;p=nihav.git codecs: implement Default trait for MV --- diff --git a/nihav-core/src/codecs/mod.rs b/nihav-core/src/codecs/mod.rs index 8225dd0..490c7c7 100644 --- a/nihav-core/src/codecs/mod.rs +++ b/nihav-core/src/codecs/mod.rs @@ -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,