8000 hir: simplify a match expression · rust-lang/rust@cf4f5c3 · GitHub
[go: up one dir, main page]

Skip to content
8000

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

src/librustc/hir/mod.rs

Lines changed: 2 additions & 2 deletions
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)
0