Skip to content

Commit deae1d1

Browse files
committed
Reformat match arms to solve a dogfood-lint issue.
1 parent 4f534dd commit deae1d1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

clippy_lints/src/unused_io_amount.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ fn check_method_call(cx: &LateContext<'_>, call: &hir::Expr<'_>, expr: &hir::Exp
131131
expr.span,
132132
"read amount is not handled. Use `AsyncReadExt::read_exact` instead",
133133
),
134-
(true, _, "read_vectored", _) => span_lint(cx, UNUSED_IO_AMOUNT, expr.span, "read amount is not handled"),
134+
(true, _, "read_vectored", _) => {
135+
span_lint(cx, UNUSED_IO_AMOUNT, expr.span, "read amount is not handled");
136+
},
135137
(_, true, "write", false) => span_lint(
136138
cx,
137139
UNUSED_IO_AMOUNT,
@@ -145,7 +147,7 @@ fn check_method_call(cx: &LateContext<'_>, call: &hir::Expr<'_>, expr: &hir::Exp
145147
"written amount is not handled. Use `AsyncWriteExt::write_all` instead",
146148
),
147149
(_, true, "write_vectored", _) => {
148-
span_lint(cx, UNUSED_IO_AMOUNT, expr.span, "written amount is not handled")
150+
span_lint(cx, UNUSED_IO_AMOUNT, expr.span, "written amount is not handled");
149151
},
150152
_ => (),
151153
}

0 commit comments

Comments
 (0)