Merge rust-bitcoin/rust-bitcoin#2202: Automated nightly rustfmt (2023-11-19)
f5882ef3c6
2023-11-19 automated rustfmt nightly (apoelstra) Pull request description: Automated nightly `rustfmt` changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action ACKs for top commit: apoelstra: ACKf5882ef3c6
Tree-SHA512: 4efc31ae0281dc824181177b39154f4a53475367a0e83fcbdcc4ab99cf68aefa379c850e49ac1a5d11fbd5f4fc62afa6d56393e0c6286e6ff3cae7f27583fbda
This commit is contained in:
commit
8aa5501827
|
@ -118,25 +118,17 @@ impl Params {
|
|||
}
|
||||
|
||||
impl From<Network> for Params {
|
||||
fn from(value: Network) -> Self {
|
||||
Self::new(value)
|
||||
}
|
||||
fn from(value: Network) -> Self { Self::new(value) }
|
||||
}
|
||||
|
||||
impl From<&Network> for Params {
|
||||
fn from(value: &Network) -> Self {
|
||||
Self::new(*value)
|
||||
}
|
||||
fn from(value: &Network) -> Self { Self::new(*value) }
|
||||
}
|
||||
|
||||
impl From<Network> for &'static Params {
|
||||
fn from(value: Network) -> Self {
|
||||
value.params()
|
||||
}
|
||||
fn from(value: Network) -> Self { value.params() }
|
||||
}
|
||||
|
||||
impl From<&Network> for &'static Params {
|
||||
fn from(value: &Network) -> Self {
|
||||
value.params()
|
||||
}
|
||||
fn from(value: &Network) -> Self { value.params() }
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue