Skip to content

Commit

Permalink
Add ipv4addr to "Integers"
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlKCarlK committed May 14, 2024
1 parent 3089194 commit c445641
Show file tree
Hide file tree
Showing 20 changed files with 354 additions and 335 deletions.
2 changes: 1 addition & 1 deletion src/from_slice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ where

if let Some(inner_previous_range) = self.previous_range.as_mut() {
// if some and previous is some and adjacent, combine
if *inner_previous_range.end() + T::one() == this_start {
if (*inner_previous_range.end()).add_one() == this_start {
*inner_previous_range = *(inner_previous_range.start())..=this_end;
} else {
// if some and previous is some but not adjacent, flush previous, set previous to this range.
Expand Down

0 comments on commit c445641

Please sign in to comment.