zebra-state tests all pass
This commit is contained in:
parent
a24612e78e
commit
7e539ae0c1
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue