Skip to content

Commit 1464dce

Browse files
Thread Constness through selection
1 parent 113c147 commit 1464dce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/future_not_send.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ impl<'tcx> LateLintPass<'tcx> for FutureNotSend {
6868
for &(p, _span) in preds {
6969
let p = p.subst(cx.tcx, subst);
7070
if let Some(trait_ref) = p.to_opt_poly_trait_ref() {
71-
if Some(trait_ref.def_id()) == cx.tcx.lang_items().future_trait() {
71+
if Some(trait_ref.value.def_id()) == cx.tcx.lang_items().future_trait() {
7272
is_future = true;
7373
break;
7474
}

0 commit comments

Comments
 (0)