From 641960f037414a819feab2250f55226f7c7f56f6 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Wed, 25 May 2022 13:13:13 +1000 Subject: [PATCH] Use rustfmt::skip Clippy emits: warning: `cfg_attr` is deprecated for rustfmt and got replaced by tool attributes As suggested use `rustfmt::skip`. --- src/util/psbt/macros.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/psbt/macros.rs b/src/util/psbt/macros.rs index 0b64912c..542ff1df 100644 --- a/src/util/psbt/macros.rs +++ b/src/util/psbt/macros.rs @@ -92,7 +92,7 @@ macro_rules! impl_psbtmap_consensus_enc_dec_oding { }; } -#[cfg_attr(rustfmt, rustfmt_skip)] +#[rustfmt::skip] macro_rules! impl_psbt_insert_pair { ($slf:ident.$unkeyed_name:ident <= <$raw_key:ident: _>|<$raw_value:ident: $unkeyed_value_type:ty>) => { if $raw_key.key.is_empty() { @@ -122,7 +122,7 @@ macro_rules! impl_psbt_insert_pair { }; } -#[cfg_attr(rustfmt, rustfmt_skip)] +#[rustfmt::skip] macro_rules! impl_psbt_get_pair { ($rv:ident.push($slf:ident.$unkeyed_name:ident, $unkeyed_typeval:ident)) => { if let Some(ref $unkeyed_name) = $slf.$unkeyed_name {