We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2230add commit 99b4330Copy full SHA for 99b4330
clippy_lints/src/doc/missing_headers.rs
@@ -72,7 +72,7 @@ pub fn check(
72
&& let body = cx.tcx.hir().body(body_id)
73
&& let ret_ty = typeck.expr_ty(body.value)
74
&& implements_trait(cx, ret_ty, future, &[])
75
- && let ty::Coroutine(_, subs, _) = ret_ty.kind()
+ && let ty::Coroutine(_, subs) = ret_ty.kind()
76
&& is_type_diagnostic_item(cx, subs.as_coroutine().return_ty(), sym::Result)
77
{
78
span_lint(
0 commit comments