From 4a3d43afc181e21f253572729bd7014f3b7d398d Mon Sep 17 00:00:00 2001 From: meh Date: Tue, 12 May 2015 19:58:37 +0200 Subject: [PATCH] util/frame: use lifetime elision --- src/util/frame/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/util/frame/mod.rs b/src/util/frame/mod.rs index 107cddd..5dcf75f 100644 --- a/src/util/frame/mod.rs +++ b/src/util/frame/mod.rs @@ -65,7 +65,7 @@ impl Frame { } } - pub fn metadata<'a>(&'a self) -> Dictionary<'a> { + pub fn metadata(&self) -> Dictionary { unsafe { Dictionary::wrap(av_frame_get_metadata(self.ptr)) } @@ -77,7 +77,7 @@ impl Frame { } } - pub fn side_data<'a>(&'a self, kind: side_data::Type) -> Option> { + pub fn side_data(&self, kind: side_data::Type) -> Option { unsafe { let ptr = av_frame_get_side_data(self.ptr, kind.into()); @@ -90,7 +90,7 @@ impl Frame { } } - pub fn new_side_data<'a>(&'a mut self, kind: side_data::Type, size: usize) -> Option> { + pub fn new_side_data(&mut self, kind: side_data::Type, size: usize) -> Option { unsafe { let ptr = av_frame_new_side_data(self.ptr, kind.into(), size as c_int);