More manual clippy fixes
This commit is contained in:
@@ -763,8 +763,8 @@ pub trait TypeWalk {
|
||||
Self: Sized,
|
||||
{
|
||||
self.walk_mut_binders(
|
||||
&mut |ty, binders| match ty {
|
||||
&mut Ty::Bound(idx) => {
|
||||
&mut |ty, binders| {
|
||||
if let &mut Ty::Bound(idx) = ty {
|
||||
if idx as usize >= binders && (idx as usize - binders) < substs.len() {
|
||||
*ty = substs.0[idx as usize - binders].clone();
|
||||
} else if idx as usize >= binders + substs.len() {
|
||||
@@ -772,7 +772,6 @@ pub trait TypeWalk {
|
||||
*ty = Ty::Bound(idx - substs.len() as u32);
|
||||
}
|
||||
}
|
||||
_ => {}
|
||||
},
|
||||
0,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user