Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
ink
Commits
899324c1
Unverified
Commit
899324c1
authored
Dec 07, 2020
by
Michael Müller
Committed by
GitHub
Dec 07, 2020
Browse files
Apply nightly rustfmt (#607)
parent
5115146d
Pipeline
#116338
passed with stages
in 30 minutes and 35 seconds
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
crates/lang/ir/src/ir/item_impl/constructor.rs
View file @
899324c1
...
...
@@ -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
(
_
)
)
},
)
...
...
crates/lang/ir/src/ir/item_impl/message.rs
View file @
899324c1
...
...
@@ -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
(
_
)
)
},
)
...
...
crates/lang/ir/src/ir/item_impl/mod.rs
View file @
899324c1
...
...
@@ -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
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment