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> {
    | |_____^
This commit is contained in:
Sebastian Dröge 2019-11-14 11:45:42 +01:00 committed by Sebastian Dröge
parent 0c944cb26e
commit 9f121b1f12

View file

@ -104,6 +104,7 @@ impl<'a> SampleBuilder<'a> {
} }
impl Sample { impl Sample {
#[allow(clippy::new_ret_no_self)]
pub fn new<'a>() -> SampleBuilder<'a> { pub fn new<'a>() -> SampleBuilder<'a> {
SampleBuilder { SampleBuilder {
buffer: None, buffer: None,