From f5882ef3c6f2b8e880683ecae9a6708950617ab1 Mon Sep 17 00:00:00 2001 From: apoelstra Date: Sun, 19 Nov 2023 00:58:32 +0000 Subject: [PATCH] 2023-11-19 automated rustfmt nightly --- bitcoin/src/consensus/params.rs | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/bitcoin/src/consensus/params.rs b/bitcoin/src/consensus/params.rs index 4382bec8..f181ab55 100644 --- a/bitcoin/src/consensus/params.rs +++ b/bitcoin/src/consensus/params.rs @@ -118,25 +118,17 @@ impl Params { } impl From 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 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() } }