Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add missing explicit lifetime for rust 1.83 build #5516

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libflux/flux-core/src/ast/walk/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ impl<'a> Node<'a> {

impl<'a> Node<'a> {
#[allow(missing_docs)]
pub fn from_expr(expr: &'a Expression) -> Node {
pub fn from_expr(expr: &'a Expression) -> Node<'a> {
match expr {
Expression::Identifier(e) => Node::Identifier(e),
Expression::Array(e) => Node::ArrayExpr(e),
Expand Down
2 changes: 1 addition & 1 deletion libflux/flux-core/src/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub struct Parser<'input> {

impl<'input> Parser<'input> {
/// Instantiates a new parser with the given string as input.
pub fn new(src: &'input str) -> Parser {
pub fn new(src: &'input str) -> Parser<'input> {
let s = Scanner::new(src);
Parser {
s,
Expand Down