Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
marirs committed Dec 28, 2022
1 parent 4ac82d3 commit 4a19876
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,7 @@ impl Source {
while i < 16 {
buf[i] = self.read_u8(offset + j)?;
i += 1;
if j > 0 {
j -= 1;
}
j = j.saturating_sub(1);
}
let result = Ipv6Addr::from(buf);
Ok(result)
Expand Down

0 comments on commit 4a19876

Please sign in to comment.