Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit f06eeaf

Browse files
committed
Cleanup
1 parent 3436e21 commit f06eeaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/needless_pass_by_value.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ impl<'tcx> LateLintPass<'tcx> for NeedlessPassByValue {
115115
.filter(|p| !p.is_global())
116116
.filter_map(|obligation| {
117117
// Note that we do not want to deal with qualified predicates here.
118-
let binder = obligation.predicate.kind();
118+
let binder = obligation.predicate.bound_atom();
119119
match binder.skip_binder() {
120120
ty::PredicateAtom::Trait(pred, _) if !binder.has_escaping_bound_vars() => {
121121
if pred.def_id() == sized_trait {

0 commit comments

Comments
 (0)