Skip to content

Commit f28f1f1

Browse files
committed
Fix dogfood fallout
1 parent da9b138 commit f28f1f1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clippy_lints/src/utils/inspector.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -289,21 +289,21 @@ fn print_expr(cx: &LateContext<'_, '_>, expr: &hir::Expr<'_>, indent: usize) {
289289
println!("{}operands:", ind);
290290
for op in asm.operands {
291291
match op {
292-
hir::InlineAsmOperand::In { expr, .. } => print_expr(cx, expr, indent + 1),
292+
hir::InlineAsmOperand::In { expr, .. }
293+
| hir::InlineAsmOperand::InOut { expr, .. }
294+
| hir::InlineAsmOperand::Const { expr }
295+
| hir::InlineAsmOperand::Sym { expr } => print_expr(cx, expr, indent + 1),
293296
hir::InlineAsmOperand::Out { expr, .. } => {
294297
if let Some(expr) = expr {
295298
print_expr(cx, expr, indent + 1);
296299
}
297300
},
298-
hir::InlineAsmOperand::InOut { expr, .. } => print_expr(cx, expr, indent + 1),
299301
hir::InlineAsmOperand::SplitInOut { in_expr, out_expr, .. } => {
300302
print_expr(cx, in_expr, indent + 1);
301303
if let Some(out_expr) = out_expr {
302304
print_expr(cx, out_expr, indent + 1);
303305
}
304306
},
305-
hir::InlineAsmOperand::Const { expr } => print_expr(cx, expr, indent + 1),
306-
hir::InlineAsmOperand::Sym { expr } => print_expr(cx, expr, indent + 1),
307307
}
308308
}
309309
},

0 commit comments

Comments
 (0)