From fc66e89940515130b20758aa33245b7fca422034 Mon Sep 17 00:00:00 2001 From: Jeroen Ketema Date: Thu, 6 Aug 2026 15:08:59 +0200 Subject: [PATCH] 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 ``` --- shared/yeast/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/yeast/src/lib.rs b/shared/yeast/src/lib.rs index cf06d2d2c17b..c290246541f5 100644 --- a/shared/yeast/src/lib.rs +++ b/shared/yeast/src/lib.rs @@ -492,7 +492,7 @@ impl Ast { } } - pub fn walk(&self) -> AstCursor { + pub fn walk(&self) -> AstCursor<'_> { AstCursor::new(self) }