forked from mirrors/gstreamer-rs
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:
parent
0c944cb26e
commit
9f121b1f12
1 changed files with 1 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue