Skip to content

Commit

Permalink
Thread Constness through selection
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-schievink committed Nov 22, 2020
1 parent 113c147 commit 1464dce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/future_not_send.rs
Expand Up @@ -68,7 +68,7 @@ impl<'tcx> LateLintPass<'tcx> for FutureNotSend {
for &(p, _span) in preds {
let p = p.subst(cx.tcx, subst);
if let Some(trait_ref) = p.to_opt_poly_trait_ref() {
if Some(trait_ref.def_id()) == cx.tcx.lang_items().future_trait() {
if Some(trait_ref.value.def_id()) == cx.tcx.lang_items().future_trait() {
is_future = true;
break;
}
Expand Down

0 comments on commit 1464dce

Please sign in to comment.