Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
error: manually reimplementing `div_ceil` --> crates/vfio-ioctls/src/fam.rs:12:24 | 12 | let rounded_size = (size_in_bytes + size_of::<T>() - 1) / size_of::<T>(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.div_ceil()`: `size_in_bytes.div_ceil(size_of::<T>())` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_div_ceil = note: `-D clippy::manual-div-ceil` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::manual_div_ceil)]` Signed-off-by: Jinank Jain <jinankjain@microsoft.com>
- Loading branch information