Skip to content

Commit b55b2f5

Browse files
committedFeb 1, 2025··
fix: add missing explicit lifetime for rust 1.83 build
Signed-off-by: Rui Chen <rui@chenrui.dev>
1 parent e311439 commit b55b2f5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎libflux/flux-core/src/ast/walk/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ impl<'a> Node<'a> {
180180

181181
impl<'a> Node<'a> {
182182
#[allow(missing_docs)]
183-
pub fn from_expr(expr: &'a Expression) -> Node {
183+
pub fn from_expr(expr: &'a Expression) -> Node<'a> {
184184
match expr {
185185
Expression::Identifier(e) => Node::Identifier(e),
186186
Expression::Array(e) => Node::ArrayExpr(e),

‎libflux/flux-core/src/parser/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ pub struct Parser<'input> {
4141

4242
impl<'input> Parser<'input> {
4343
/// Instantiates a new parser with the given string as input.
44-
pub fn new(src: &'input str) -> Parser {
44+
pub fn new(src: &'input str) -> Parser<'input> {
4545
let s = Scanner::new(src);
4646
Parser {
4747
s,

0 commit comments

Comments
 (0)
Please sign in to comment.