mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-12 20:16:49 +00:00
hir: simplify a match expression
This commit is contained in:
parent
3d919297b9
commit
cf4f5c3b34
@ -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…
Reference in New Issue
Block a user