We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e311439 commit b55b2f5Copy full SHA for b55b2f5
libflux/flux-core/src/ast/walk/mod.rs
@@ -180,7 +180,7 @@ impl<'a> Node<'a> {
180
181
impl<'a> Node<'a> {
182
#[allow(missing_docs)]
183
- pub fn from_expr(expr: &'a Expression) -> Node {
+ pub fn from_expr(expr: &'a Expression) -> Node<'a> {
184
match expr {
185
Expression::Identifier(e) => Node::Identifier(e),
186
Expression::Array(e) => Node::ArrayExpr(e),
libflux/flux-core/src/parser/mod.rs
@@ -41,7 +41,7 @@ pub struct Parser<'input> {
41
42
impl<'input> Parser<'input> {
43
/// Instantiates a new parser with the given string as input.
44
- pub fn new(src: &'input str) -> Parser {
+ pub fn new(src: &'input str) -> Parser<'input> {
45
let s = Scanner::new(src);
46
Parser {
47
s,
0 commit comments