Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
I
ink
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
List
Container Registry
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
parity
ink
Commits
9cb491f3
Commit
9cb491f3
authored
Nov 08, 2019
by
Qinxuan Chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix clippy warnings, but ICE
Signed-off-by:
koushiro
<
koushiro.cqx@gmail.com
>
parent
f3236e7c
Pipeline
#56233
failed with stages
in 4 minutes and 39 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
abi/src/specs.rs
abi/src/specs.rs
+7
-0
No files found.
abi/src/specs.rs
View file @
9cb491f3
...
...
@@ -172,6 +172,7 @@ impl ContractSpecBuilder<Valid> {
impl
ContractSpec
{
/// Creates a new contract specification.
#[allow(clippy::new_ret_no_self)]
pub
fn
new
(
name
:
<
MetaForm
as
Form
>
::
String
)
->
ContractSpecBuilder
{
ContractSpecBuilder
{
spec
:
Self
{
...
...
@@ -232,6 +233,7 @@ pub struct ConstructorSpecBuilder<Selector> {
impl
ConstructorSpec
{
/// Creates a new constructor spec builder.
#[allow(clippy::new_ret_no_self)]
pub
fn
new
(
name
:
<
MetaForm
as
Form
>
::
String
,
)
->
ConstructorSpecBuilder
<
Missing
<
state
::
Selector
>>
{
...
...
@@ -328,6 +330,7 @@ mod state {
impl
MessageSpec
{
/// Creates a new message spec builder.
#[allow(clippy::new_ret_no_self)]
pub
fn
new
(
name
:
<
MetaForm
as
Form
>
::
String
,
)
->
MessageSpecBuilder
<
...
...
@@ -521,6 +524,7 @@ impl IntoCompact for EventSpec {
impl
EventSpec
{
/// Creates a new event specification builder.
#[allow(clippy::new_ret_no_self)]
pub
fn
new
(
name
:
&
'static
str
)
->
EventSpecBuilder
{
EventSpecBuilder
{
spec
:
Self
{
...
...
@@ -669,6 +673,7 @@ impl IntoCompact for EventParamSpec {
impl
EventParamSpec
{
/// Creates a new event parameter specification builder.
#[allow(clippy::new_ret_no_self)]
pub
fn
new
(
name
:
&
'static
str
)
->
EventParamSpecBuilder
{
EventParamSpecBuilder
{
spec
:
Self
{
...
...
@@ -774,6 +779,7 @@ impl IntoCompact for MessageParamSpec {
impl
MessageParamSpec
{
/// Constructs a new message parameter specification via builder.
#[allow(clippy::new_ret_no_self)]
pub
fn
new
(
name
:
&
'static
str
)
->
MessageParamSpecBuilder
{
MessageParamSpecBuilder
{
spec
:
Self
{
...
...
@@ -805,6 +811,7 @@ impl MessageParamSpecBuilder {
}
}
#[allow(clippy::trivially_copy_pass_by_ref)]
fn
serialize_selector
<
S
>
(
s
:
&
[
u8
;
4
],
serializer
:
S
)
->
Result
<
S
::
Ok
,
S
::
Error
>
where
S
:
Serializer
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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