zebra-state tests all pass

This commit is contained in:
idky137 2024-03-18 17:09:42 +00:00
parent a24612e78e
commit 7e539ae0c1
No known key found for this signature in database
1 changed files with 2 additions and 8 deletions

View File

@ -92,8 +92,8 @@ impl Network {
}
}
impl From<Network> for &'static str {
fn from(network: Network) -> &'static str {
impl From<&Network> for &'static str {
fn from(network: &Network) -> &'static str {
match network {
Network::Mainnet => "Mainnet",
Network::Testnet => "Testnet",
@ -101,12 +101,6 @@ impl From<Network> for &'static str {
}
}
impl From<&Network> for &'static str {
fn from(network: &Network) -> &'static str {
(network).into()
}
}
impl fmt::Display for Network {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.write_str(self.into())