2023-11-19 automated rustfmt nightly

This commit is contained in:
apoelstra 2023-11-19 00:58:32 +00:00 committed by GitHub
parent c12debfd0c
commit f5882ef3c6
1 changed files with 4 additions and 12 deletions

View File

@ -118,25 +118,17 @@ impl Params {
} }
impl From<Network> for Params { impl From<Network> for Params {
fn from(value: Network) -> Self { fn from(value: Network) -> Self { Self::new(value) }
Self::new(value)
}
} }
impl From<&Network> for Params { impl From<&Network> for Params {
fn from(value: &Network) -> Self { fn from(value: &Network) -> Self { Self::new(*value) }
Self::new(*value)
}
} }
impl From<Network> for &'static Params { impl From<Network> for &'static Params {
fn from(value: Network) -> Self { fn from(value: Network) -> Self { value.params() }
value.params()
}
} }
impl From<&Network> for &'static Params { impl From<&Network> for &'static Params {
fn from(value: &Network) -> Self { fn from(value: &Network) -> Self { value.params() }
value.params()
}
} }