From 62739b803dc001de78edb0c4c32a580e62a24e6d Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Tue, 20 Jun 2017 20:33:46 +0300 Subject: [PATCH] util: fix formatting --- src/util/format/pixel.rs | 3 ++- src/util/frame/video.rs | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/format/pixel.rs b/src/util/format/pixel.rs index 94e2078..d5ad96c 100644 --- a/src/util/format/pixel.rs +++ b/src/util/format/pixel.rs @@ -303,7 +303,8 @@ impl Pixel { if ptr.is_null() { None - } else { + } + else { Some(Descriptor { ptr }) } } diff --git a/src/util/frame/video.rs b/src/util/frame/video.rs index 91ceb7e..c202573 100644 --- a/src/util/frame/video.rs +++ b/src/util/frame/video.rs @@ -258,7 +258,6 @@ impl Video { match self.format().descriptor() { None => self.height(), - Some(desc) => { let s = desc.log2_chroma_h(); (self.height() + (1 << s) - 1) >> s