1
Fork 0

Small clippy::correctness fixes

Nothing was really incorrect before, but it did get nicer.
This commit is contained in:
Nilstrieb 2023-04-09 22:31:48 +02:00
parent 0a0968b207
commit 07cd3826e0
3 changed files with 4 additions and 6 deletions

View file

@ -302,7 +302,7 @@ impl<'tcx> InherentOverlapChecker<'tcx> {
.iter()
.flatten()
.map(|r| r.impl_blocks.len() as isize - avg as isize)
.map(|v| v.abs() as usize)
.map(|v| v.unsigned_abs())
.sum::<usize>();
s / connected_regions.len()
},