Skip to content

Commit cbd64a4

Browse files
Use named fields for OpaqueTyOrigin
1 parent ce22fd3 commit cbd64a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/len_zero.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ fn extract_future_output<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>) -> Option<&
313313
kind: ItemKind::OpaqueTy(opaque),
314314
..
315315
} = item
316-
&& let OpaqueTyOrigin::AsyncFn(_) = opaque.origin
316+
&& let OpaqueTyOrigin::AsyncFn { .. } = opaque.origin
317317
&& let [GenericBound::Trait(trait_ref, _)] = &opaque.bounds
318318
&& let Some(segment) = trait_ref.trait_ref.path.segments.last()
319319
&& let Some(generic_args) = segment.args

0 commit comments

Comments
 (0)