hir: simplify a match expression

This commit is contained in:
ljedrz 2018-11-13 17:23:18 +01:00
parent 3d919297b9
commit cf4f5c3b34

View File

@ -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,
}
}