2023-11-19 automated rustfmt nightly
This commit is contained in:
parent
c12debfd0c
commit
f5882ef3c6
|
@ -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()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue