Unverified Commit 899324c1 authored by Michael Müller's avatar Michael Müller Committed by GitHub
Browse files

Apply nightly rustfmt (#607)

parent 5115146d
Pipeline #116338 passed with stages
in 30 minutes and 35 seconds
......@@ -154,9 +154,9 @@ impl Constructor {
method_item.attrs.clone(),
&ir::AttributeArgKind::Constructor,
|kind| {
!matches!(kind,
ir::AttributeArgKind::Constructor
| ir::AttributeArgKind::Selector(_)
!matches!(
kind,
ir::AttributeArgKind::Constructor | ir::AttributeArgKind::Selector(_)
)
},
)
......
......@@ -181,10 +181,11 @@ impl Message {
method_item.attrs.clone(),
&ir::AttributeArgKind::Message,
|kind| {
!matches!(kind,
!matches!(
kind,
ir::AttributeArgKind::Message
| ir::AttributeArgKind::Payable
| ir::AttributeArgKind::Selector(_)
| ir::AttributeArgKind::Payable
| ir::AttributeArgKind::Selector(_)
)
},
)
......
......@@ -298,7 +298,11 @@ impl TryFrom<syn::ItemImpl> for ItemImpl {
err.into_combine(format_err!(impl_block_span, "at this invocation",))
})?;
normalized.ensure_no_conflicts(|arg| {
!matches!(arg.kind(), ir::AttributeArgKind::Implementation | ir::AttributeArgKind::Namespace(_))
!matches!(
arg.kind(),
ir::AttributeArgKind::Implementation
| ir::AttributeArgKind::Namespace(_)
)
})?;
namespace = normalized.namespace();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment