From 5d718ffdb905f2ae317ef94bc83a3dd10a74c89b Mon Sep 17 00:00:00 2001 From: meh Date: Wed, 5 Aug 2015 19:34:05 +0200 Subject: [PATCH] picture: add inline attributes --- src/util/picture.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/util/picture.rs b/src/util/picture.rs index 0e5b96e..ddd8d02 100644 --- a/src/util/picture.rs +++ b/src/util/picture.rs @@ -13,6 +13,7 @@ pub enum Type { } impl From for Type { + #[inline(always)] fn from(value: AVPictureType) -> Type { match value { AV_PICTURE_TYPE_NONE => Type::None, @@ -28,6 +29,7 @@ impl From for Type { } impl Into for Type { + #[inline(always)] fn into(self) -> AVPictureType { match self { Type::None => AV_PICTURE_TYPE_NONE,