fix tests

This commit is contained in:
hinto.janai 2024-10-17 21:27:27 -04:00
parent f42d71b164
commit 2085749824
No known key found for this signature in database
GPG key ID: D47CE05FA175A499

View file

@ -42,7 +42,7 @@ impl AddressType {
/// Convert [`Self`] to a [`u8`].
///
/// ```rust
/// use cuprate_p2p_core::AddressType as A;
/// use cuprate_p2p_core::types::AddressType as A;
///
/// assert_eq!(A::Invalid.to_u8(), 0);
/// assert_eq!(A::Ipv4.to_u8(), 1);
@ -60,7 +60,7 @@ impl AddressType {
/// This returns [`None`] if `u > 4`.
///
/// ```rust
/// use cuprate_p2p_core::AddressType as A;
/// use cuprate_p2p_core::types::AddressType as A;
///
/// assert_eq!(A::from_u8(0), Some(A::Invalid));
/// assert_eq!(A::from_u8(1), Some(A::Ipv4));