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
       --> gen/cmd/src/app.rs:95:5
        |
    95  | /     Opt {
    96  | |         input,
    97  | |         cxx_impl_annotations,
    98  | |         header,
    99  | |         include,
    100 | |         outputs,
    101 | |     }
        | |_____^ help: try: `Opt { input, header, cxx_impl_annotations, include, outputs }`
        |
        = 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 e5bb345 commit 3dafaed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gen/cmd/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ pub(super) fn from_args() -> Opt {

Opt {
input,
cxx_impl_annotations,
header,
cxx_impl_annotations,
include,
outputs,
}
Expand Down

0 comments on commit 3dafaed

Please sign in to comment.