gstreamer/buffer: Fix clippy::needless_lifetimes

This commit is contained in:
Marijn Suijten 2020-11-22 00:18:20 +01:00
parent b0b2b8d4ed
commit 56c2b730f8

View file

@ -676,13 +676,13 @@ impl BufferRef {
IterOwned::new(self)
}
pub fn as_cursor_readable<'a>(&'a self) -> BufferRefCursor<&'a BufferRef> {
pub fn as_cursor_readable(&self) -> BufferRefCursor<&BufferRef> {
BufferRefCursor::new_readable(self)
}
pub fn as_cursor_writable<'a>(
&'a mut self,
) -> Result<BufferRefCursor<&'a mut BufferRef>, glib::BoolError> {
pub fn as_cursor_writable(
&mut self,
) -> Result<BufferRefCursor<&mut BufferRef>, glib::BoolError> {
BufferRefCursor::new_writable(self)
}
}