Skip to content

Commit

Permalink
hir: simplify a match expression
Browse files Browse the repository at this point in the history
  • Loading branch information
ljedrz committed Nov 13, 2018
1 parent 3d91929 commit cf4f5c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustc/hir/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1193,8 +1193,8 @@ impl StmtKind {

pub fn id(&self) -> NodeId {
match *self {
StmtKind::Decl(_, id) => id,
StmtKind::Expr(_, id) => id,
StmtKind::Decl(_, id) |
StmtKind::Expr(_, id) |
StmtKind::Semi(_, id) => id,
}
}
Expand Down

0 comments on commit cf4f5c3

Please sign in to comment.