Skip to content

Commit 206834c

Browse files
Fix warning "hiding a lifetime that's elided elsewhere"
Before: Compiling nih_plug v0.0.0 warning: hiding a lifetime that's elided elsewhere is confusing --> src\params\smoothing.rs:248:17 | 248 | pub fn iter(&self) -> SmootherIter<T> { | ^^^^^ --------------- the same lifetime is hidden here | | | the lifetime is elided here | = help: the same lifetime is referred to in inconsistent ways, making the signature confusing = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default help: use `'_` for type paths | 248 | pub fn iter(&self) -> SmootherIter<'_, T> { | +++ warning: `nih_plug` (lib) generated 1 warning Finished `release` profile [optimized] target(s) in 2.27s After: Compiling nih_plug v0.0.0 Finished `release` profile [optimized] target(s) in 2.27s
1 parent 376d8d4 commit 206834c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/params/smoothing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ impl<T: Smoothable> Smoother<T> {
245245
/// sole reason that this will always yield a value, and needing to unwrap all of those options
246246
/// is not going to be very fun.
247247
#[inline]
248-
pub fn iter(&self) -> SmootherIter<T> {
248+
pub fn iter(&self) -> SmootherIter<'_, T> {
249249
SmootherIter { smoother: self }
250250
}
251251

0 commit comments

Comments
 (0)