Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the following error reported by clippy: ``` error: manual arithmetic check found --> puzzlefs-lib/src/reader/puzzlefs.rs:45:27 | 45 | let addl_offset = if offset > file_offset { | ___________________________^ 46 | | offset - file_offset 47 | | } else { 48 | | 0 49 | | }; | |_________^ help: replace it with: `offset.saturating_sub(file_offset)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#implicit_saturating_sub = note: `-D clippy::implicit-saturating-sub` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::implicit_saturating_sub)]` ``` Signed-off-by: Ariel Miculas-Trif <[email protected]>
- Loading branch information