Commit 206834c
committed
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.27s1 parent 376d8d4 commit 206834c
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | | - | |
| 248 | + | |
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
| |||
0 commit comments