Use rustfmt::skip

Clippy emits:

  warning: `cfg_attr` is deprecated for rustfmt and got replaced by tool
  attributes

As suggested use `rustfmt::skip`.
This commit is contained in:
Tobin C. Harding 2022-05-25 13:13:13 +10:00
parent 3cd00e5d47
commit 641960f037
1 changed files with 2 additions and 2 deletions

View File

@ -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 {