Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ajesipow committed Aug 24, 2024
1 parent 4e93cdf commit 5e7fdb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/atuin-client/src/import/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ fn unix_byte_lines(input: &[u8]) -> impl DoubleEndedIterator<Item = &[u8]> {
bytes: input,
i: 0,
// Set to the last element
i_rev: input.len().checked_sub(1).unwrap_or(0),
i_rev: input.len().saturating_sub(1),
}
}

Expand Down

0 comments on commit 5e7fdb9

Please sign in to comment.