This commit is contained in:
Adam Ierymenko 2022-04-27 16:02:37 -04:00
parent 85b5f0c5e0
commit b53dc62aba
No known key found for this signature in database
GPG key ID: C8877CF2D7A5D7F3

View file

@ -21,7 +21,6 @@ use crate::util::hex::HEX_CHARS;
pub struct NetworkId(NonZeroU64);
impl NetworkId {
/// Get an address from a 64-bit integer or return None if it is zero or reserved.
#[inline(always)]
pub fn from_u64(i: u64) -> Option<NetworkId> {
NonZeroU64::new(i).map(|i| Self(i))