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:
    ACK f5882ef3c6

Tree-SHA512: 4efc31ae0281dc824181177b39154f4a53475367a0e83fcbdcc4ab99cf68aefa379c850e49ac1a5d11fbd5f4fc62afa6d56393e0c6286e6ff3cae7f27583fbda
This commit is contained in:
Andrew Poelstra 2023-11-20 14:45:41 +00:00
commit 8aa5501827
No known key found for this signature in database
GPG Key ID: C588D63CE41B97C1
1 changed files with 4 additions and 12 deletions

View File

@ -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() }
}