mirror of
https://github.com/hinto-janai/cuprate.git
synced 2025-01-10 21:04:59 +00:00
fix tests
This commit is contained in:
parent
f42d71b164
commit
2085749824
1 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue