Skip to content

Commit

Permalink
Resolve inconsistent_struct_constructor style lint
Browse files Browse the repository at this point in the history
    error: inconsistent struct constructor
        --> src/item.rs:1497:16
         |
    1497 |               Ok(Signature {
         |  ________________^
    1498 | |                 constness,
    1499 | |                 asyncness,
    1500 | |                 unsafety,
    ...    |
    1508 | |                 generics,
    1509 | |             })
         | |_____________^ help: try: `Signature { constness, asyncness, unsafety, abi, fn_token, ident, generics, paren_token, inputs, variadic, output }`
         |
         = note: `-D clippy::inconsistent-struct-constructor` implied by `-D clippy::all`
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#inconsistent_struct_constructor
  • Loading branch information
dtolnay committed Feb 26, 2021
1 parent a54fb00 commit 799c21b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1501,11 +1501,11 @@ pub mod parsing {
abi,
fn_token,
ident,
generics,
paren_token,
inputs,
output,
variadic,
generics,
output,
})
}
}
Expand Down

0 comments on commit 799c21b

Please sign in to comment.