From 9f121b1f1200b1612ce299bb000e1189b57c3934 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 14 Nov 2019 11:45:42 +0100 Subject: [PATCH] gstreamer/sample: Silence clippy warning warning: methods called `new` usually return `Self` --> gstreamer/src/sample.rs:107:5 | 107 | / pub fn new<'a>() -> SampleBuilder<'a> { | |_____^ --- gstreamer/src/sample.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/gstreamer/src/sample.rs b/gstreamer/src/sample.rs index a1bd02719..a2003e4ce 100644 --- a/gstreamer/src/sample.rs +++ b/gstreamer/src/sample.rs @@ -104,6 +104,7 @@ impl<'a> SampleBuilder<'a> { } impl Sample { + #[allow(clippy::new_ret_no_self)] pub fn new<'a>() -> SampleBuilder<'a> { SampleBuilder { buffer: None,