diff --git a/src/expr.rs b/src/expr.rs index 0641ff2..d1d5890 100644 --- a/src/expr.rs +++ b/src/expr.rs @@ -165,15 +165,15 @@ impl ExprSet { } #[inline(always)] - pub fn get(&self, idx: Idx) -> Expr { + pub fn get(&self, idx: Idx) -> Expr<'_> { Expr { set: self, idx } } #[inline(always)] - pub fn get_mut(&mut self, idx: Idx) -> ExprMut { + pub fn get_mut(&mut self, idx: Idx) -> ExprMut<'_> { ExprMut { set: self, idx } } #[inline(always)] - pub fn hole(&self) -> Expr { + pub fn hole(&self) -> Expr<'_> { Expr { set: self, idx: HOLE } } /// number of Nodes in ExprSet @@ -378,7 +378,7 @@ impl<'a> Expr<'a> { impl<'a> ExprMut<'a> { #[inline(always)] - pub fn get(&mut self, idx: Idx) -> ExprMut { + pub fn get(&mut self, idx: Idx) -> ExprMut<'_> { ExprMut { set: self.set, idx } } #[inline(always)] diff --git a/src/slow_types.rs b/src/slow_types.rs index eb3d05c..adead05 100644 --- a/src/slow_types.rs +++ b/src/slow_types.rs @@ -40,7 +40,7 @@ impl SlowType { } /// iterates over all nodes in the term of this type - pub fn iter_arrows(&self) -> ArrowIter { + pub fn iter_arrows(&self) -> ArrowIter<'_> { ArrowIter { curr: self } }