Skip to content

Commit fc66e89

Browse files
committed
Yeast: silence warning
``` warning: hiding a lifetime that's elided elsewhere is confusing --> external/ql+/shared/yeast/src/lib.rs:495:17 | 495 | pub fn walk(&self) -> AstCursor { | ^^^^^ ^^^^^^^^^ 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 | 495 | pub fn walk(&self) -> AstCursor<'_> { | ++++ warning: 1 warning emitted ```
1 parent 876f68b commit fc66e89

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

shared/yeast/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ impl Ast {
492492
}
493493
}
494494

495-
pub fn walk(&self) -> AstCursor {
495+
pub fn walk(&self) -> AstCursor<'_> {
496496
AstCursor::new(self)
497497
}
498498

0 commit comments

Comments
 (0)