We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
.is_some()
Some(_)
1 parent f2419b9 commit b409103Copy full SHA for b409103
clippy_lints/src/repeat_once.rs
@@ -55,7 +55,7 @@ impl<'tcx> LateLintPass<'tcx> for RepeatOnce {
55
format!("{}.to_string()", snippet(cx, args[0].span, r#""...""#)),
56
Applicability::MachineApplicable,
57
);
58
- } else if let Some(_) = ty.builtin_index() {
+ } else if ty.builtin_index().is_some() {
59
span_lint_and_sugg(
60
cx,
61
REPEAT_ONCE,
0 commit comments