1
Fork 0

Remove explicit returns where unnecessary

This commit is contained in:
ljedrz 2018-08-04 14:31:03 +02:00
parent 579adf8c72
commit 1667950d73
7 changed files with 22 additions and 22 deletions

View file

@ -2288,7 +2288,7 @@ pub(crate) unsafe fn align_offset<T: Sized>(p: *const T, a: usize) -> usize {
let table_inverse = INV_TABLE_MOD_16[(x & (INV_TABLE_MOD - 1)) >> 1];
if m <= INV_TABLE_MOD {
return table_inverse & (m - 1);
table_inverse & (m - 1)
} else {
// We iterate "up" using the following formula:
//
@ -2375,7 +2375,7 @@ pub(crate) unsafe fn align_offset<T: Sized>(p: *const T, a: usize) -> usize {
}
// Cannot be aligned at all.
return usize::max_value();
usize::max_value()
}