We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 89303da + 0f31951 commit 43bdee0Copy full SHA for 43bdee0
clippy_lints/src/doc.rs
@@ -234,8 +234,8 @@ fn lint_for_missing_headers<'a, 'tcx>(
234
if implements_trait(cx, ret_ty, future, &[]);
235
if let ty::Opaque(_, subs) = ret_ty.kind;
236
if let Some(gen) = subs.types().next();
237
- if let ty::Generator(def_id, subs, _) = gen.kind;
238
- if match_type(cx, subs.as_generator().return_ty(def_id, cx.tcx), &paths::RESULT);
+ if let ty::Generator(_, subs, _) = gen.kind;
+ if match_type(cx, subs.as_generator().return_ty(), &paths::RESULT);
239
then {
240
span_lint(
241
cx,
0 commit comments