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

Update to clap 3.1.0 #1016

Merged
merged 2 commits into from Feb 17, 2022
Merged

Update to clap 3.1.0 #1016

merged 2 commits into from Feb 17, 2022

Conversation

dtolnay
Copy link
Owner

@dtolnay dtolnay commented Feb 17, 2022

There are several deprecations in this release:
https://github.com/clap-rs/clap/releases/tag/v3.1.0

    warning: use of deprecated struct `clap::App`: Replaced with `Command`
     --> gen/cmd/src/app.rs:9:12
      |
    9 | use clap::{App, AppSettings, Arg};
      |            ^^^
      |
      = note: `#[warn(deprecated)]` on by default

    warning: use of deprecated struct `clap::App`: Replaced with `Command`
      --> gen/cmd/src/app.rs:36:13
       |
    36 | fn app() -> App<'static> {
       |             ^^^

    warning: use of deprecated struct `clap::App`: Replaced with `Command`
      --> gen/cmd/src/app.rs:37:19
       |
    37 |     let mut app = App::new("cxxbridge")
       |                   ^^^

    warning: use of deprecated variant `clap::AppSettings::NextLineHelp`: Replaced with `Command::next_line_help` and `Command::is_next_line_help_set`
      --> gen/cmd/src/app.rs:40:31
       |
    40 |         .setting(AppSettings::NextLineHelp)
       |                               ^^^^^^^^^^^^
@dtolnay dtolnay merged commit 6d3e9ac into master Feb 17, 2022
@dtolnay dtolnay deleted the clap branch February 17, 2022 03:42
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

Successfully merging this pull request may close these issues.

None yet

1 participant