Skip to content

Commit

Permalink
Update src/lib.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed May 20, 2021
1 parent e5ea96a commit 26ccbe2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1088,7 +1088,7 @@ impl<'a> Arbitrary<'a> for Ipv4Addr {

impl<'a> Arbitrary<'a> for Ipv6Addr {
fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> {
Ok(Ipv6Addr::from(u128::arbitrary(u).unwrap()))
Ok(Ipv6Addr::from(u128::arbitrary(u)?))
}

#[inline]
Expand Down

0 comments on commit 26ccbe2

Please sign in to comment.