Skip to content
Merged
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
8 changes: 4 additions & 4 deletions src/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion src/slow_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
}

Expand Down