Skip to content

Commit cf4f5c3

Browse files
committed
hir: simplify a match expression
1 parent 3d91929 commit cf4f5c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/librustc/hir/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1193,8 +1193,8 @@ impl StmtKind {
11931193

11941194
pub fn id(&self) -> NodeId {
11951195
match *self {
1196-
StmtKind::Decl(_, id) => id,
1197-
StmtKind::Expr(_, id) => id,
1196+
StmtKind::Decl(_, id) |
1197+
StmtKind::Expr(_, id) |
11981198
StmtKind::Semi(_, id) => id,
11991199
}
12001200
}

0 commit comments

Comments
 (0)