Remove explicit returns where unnecessary
This commit is contained in:
parent
579adf8c72
commit
1667950d73
7 changed files with 22 additions and 22 deletions
|
@ -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()
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue