Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into broken-links
Browse files Browse the repository at this point in the history
  • Loading branch information
nwagner84 committed Apr 28, 2024
2 parents 5b1bf75 + 856c799 commit fd5b94b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crates/pica-toolkit/src/commands/slice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ impl Slice {
} else if self.length > 0 {
self.start..(self.start + self.length)
} else {
self.start..::std::usize::MAX
self.start..usize::MAX
};

let mut progress = Progress::new(self.progress);
Expand Down Expand Up @@ -138,8 +138,7 @@ impl Slice {
if e.is_invalid_record() && skip_invalid {
progress.invalid();

if self.length > 0
&& range.end < std::usize::MAX
if self.length > 0 && range.end < usize::MAX
{
range.end += 1;
}
Expand Down

0 comments on commit fd5b94b

Please sign in to comment.