Skip to content

Commit 8256960

Browse files
committed
Cleanup
1 parent 7c3b6a6 commit 8256960

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clippy_lints/src/needless_pass_by_value.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +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.bound_atom();
119-
match binder.skip_binder() {
118+
match obligation.predicate.bound_atom().skip_binder() {
120119
ty::PredicateAtom::Trait(pred, _) if !pred.has_escaping_bound_vars() => {
121120
if pred.def_id() == sized_trait {
122121
return None;

0 commit comments

Comments
 (0)