Skip to content

Commit b409103

Browse files
committed
Use .is_some() not Some(_)
1 parent f2419b9 commit b409103

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/repeat_once.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ impl<'tcx> LateLintPass<'tcx> for RepeatOnce {
5555
format!("{}.to_string()", snippet(cx, args[0].span, r#""...""#)),
5656
Applicability::MachineApplicable,
5757
);
58-
} else if let Some(_) = ty.builtin_index() {
58+
} else if ty.builtin_index().is_some() {
5959
span_lint_and_sugg(
6060
cx,
6161
REPEAT_ONCE,

0 commit comments

Comments
 (0)