mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
clippy
This commit is contained in:
parent
e31479f664
commit
f87c32ca7d
2 changed files with 1 additions and 53 deletions
|
@ -101,7 +101,7 @@ where
|
|||
let elem_ptr = Self::elem_ptr_from_alloc_ptr(alloc_ptr).cast::<ManuallyDrop<T>>();
|
||||
|
||||
// Initialize the reference count.
|
||||
let rc_ptr = alloc_ptr.offset(offset as isize);
|
||||
let rc_ptr = alloc_ptr.add(offset);
|
||||
rc_ptr
|
||||
.cast::<Storage>()
|
||||
.write(Storage::new_reference_counted());
|
||||
|
@ -949,13 +949,6 @@ where
|
|||
}
|
||||
}
|
||||
|
||||
const fn next_multiple_of(lhs: usize, rhs: usize) -> usize {
|
||||
match lhs % rhs {
|
||||
0 => lhs,
|
||||
r => lhs + (rhs - r),
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue