Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

external_subcommand triggers unused_braces lint #397

Closed
imp opened this issue Jun 7, 2020 · 1 comment
Closed

external_subcommand triggers unused_braces lint #397

imp opened this issue Jun 7, 2020 · 1 comment

Comments

@imp
Copy link

imp commented Jun 7, 2020

Taken verbatim from the example:

#[derive(Debug, StructOpt)]
enum Command {
    #[structopt(external_subcommand)]
    Other(Vec<String>),
}

upsets compiler (probably new lint)

  --> src/main.rs:81:15
   |
81 |     Other(Vec<String>),
   |               ^^^^^^ help: remove these braces
   |
note: the lint level is defined here
  --> src/main.rs:14:9
   |
14 | #![warn(unused)]
   |         ^^^^^^
   = note: `#[warn(unused_braces)]` implied by `#[warn(unused)]`
@CreepySkeleton
Copy link
Collaborator

Fixed by #399

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants