Skip to content

Commit 99b4330

Browse files
Remove movability from TyKind::Coroutine
1 parent 2230add commit 99b4330

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/doc/missing_headers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ pub fn check(
7272
&& let body = cx.tcx.hir().body(body_id)
7373
&& let ret_ty = typeck.expr_ty(body.value)
7474
&& implements_trait(cx, ret_ty, future, &[])
75-
&& let ty::Coroutine(_, subs, _) = ret_ty.kind()
75+
&& let ty::Coroutine(_, subs) = ret_ty.kind()
7676
&& is_type_diagnostic_item(cx, subs.as_coroutine().return_ty(), sym::Result)
7777
{
7878
span_lint(

0 commit comments

Comments
 (0)