Skip to content

Commit

Permalink
Use rustfmt::skip
Browse files Browse the repository at this point in the history
Clippy emits:

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

As suggested use `rustfmt::skip`.
  • Loading branch information
tcharding committed May 25, 2022
1 parent 3cd00e5 commit 641960f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util/psbt/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 641960f

Please sign in to comment.