format/stream: use lifetime elision

This commit is contained in:
meh 2015-05-12 20:05:29 +02:00
parent 7c213c2516
commit 2f4ca56e46

View File

@ -37,7 +37,7 @@ impl<'a> Stream<'a> {
Stream { ptr: ptr, _marker: PhantomData } Stream { ptr: ptr, _marker: PhantomData }
} }
pub fn codec(&'a self) -> codec::Context<'a> { pub fn codec(&self) -> codec::Context {
unsafe { unsafe {
codec::Context::wrap((*self.ptr).codec) codec::Context::wrap((*self.ptr).codec)
} }
@ -85,7 +85,7 @@ impl<'a> Stream<'a> {
} }
} }
pub fn side_data(&'a self) -> SideDataIter<'a> { pub fn side_data(&self) -> SideDataIter {
SideDataIter::new(self.ptr) SideDataIter::new(self.ptr)
} }