From 79945c2c5e93c0fe4e260bd05c11ed332345d291 Mon Sep 17 00:00:00 2001 From: meh Date: Thu, 29 Oct 2015 18:05:54 +0100 Subject: [PATCH] util/format/pixel: add inline attributes --- src/util/format/pixel.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/util/format/pixel.rs b/src/util/format/pixel.rs index d587456..630f77b 100644 --- a/src/util/format/pixel.rs +++ b/src/util/format/pixel.rs @@ -275,6 +275,7 @@ pub enum Pixel { } impl From for Pixel { + #[inline] fn from(value: AVPixelFormat) -> Self { match value { AV_PIX_FMT_NONE => Pixel::None, @@ -485,6 +486,7 @@ impl From for Pixel { } impl Into for Pixel { + #[inline] fn into(self) -> AVPixelFormat { match self { Pixel::None => AV_PIX_FMT_NONE,