hir: simplify a match expression
This commit is contained in:
parent
3d919297b9
commit
cf4f5c3b34
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue