diff options
| author | ljedrz <ljedrz@gmail.com> | 2018-11-13 17:23:18 +0100 |
|---|---|---|
| committer | ljedrz <ljedrz@gmail.com> | 2018-11-13 17:35:56 +0100 |
| commit | cf4f5c3b349d994bb2024c700956f043fc913fe6 (patch) | |
| tree | f46ee56550dd0a35dfd32da85a27ffe6d787fd63 | |
| parent | 3d919297b9febda29b649d1862d39a96a4448812 (diff) | |
| download | rust-cf4f5c3b349d994bb2024c700956f043fc913fe6.tar.gz rust-cf4f5c3b349d994bb2024c700956f043fc913fe6.zip | |
hir: simplify a match expression
| -rw-r--r-- | src/librustc/hir/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc/hir/mod.rs b/src/librustc/hir/mod.rs index 59565558963..af67f8cec8c 100644 --- a/src/librustc/hir/mod.rs +++ b/src/librustc/hir/mod.rs @@ -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, } } |
