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

chore(deps): update rust crate clap to v4 (1.x) #12264

Closed
wants to merge 1 commit into from

chore(deps): update rust crate clap to v4

b59ff5f
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Closed

chore(deps): update rust crate clap to v4 (1.x) #12264

chore(deps): update rust crate clap to v4
b59ff5f
Select commit
Loading
Failed to load commit list.
GitHub Actions / all failed Jan 6, 2025 in 0s

all

15 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 15
Warning 0
Note 0
Help 0

Versions

  • rustc 1.83.0 (90b35a623 2024-11-26)
  • cargo 1.83.0 (5ffbef321 2024-10-29)
  • clippy 0.1.83 (90b35a6 2024-11-26)

Annotations

Check failure on line 257 in core/tauri/src/api/cli.rs

See this annotation in the file changed.

@github-actions github-actions / all

no method named `max_values` found for struct `clap::Arg` in the current scope

error[E0599]: no method named `max_values` found for struct `clap::Arg` in the current scope
   --> core/tauri/src/api/cli.rs:257:45
    |
257 |   clap_arg = bind_value_arg!(arg, clap_arg, max_values);
    |                                             ^^^^^^^^^^ method not found in `clap::Arg`

Check failure on line 256 in core/tauri/src/api/cli.rs

See this annotation in the file changed.

@github-actions github-actions / all

no method named `min_values` found for struct `clap::Arg` in the current scope

error[E0599]: no method named `min_values` found for struct `clap::Arg` in the current scope
   --> core/tauri/src/api/cli.rs:256:45
    |
256 |   clap_arg = bind_value_arg!(arg, clap_arg, min_values);
    |                                             ^^^^^^^^^^ method not found in `clap::Arg`

Check failure on line 254 in core/tauri/src/api/cli.rs

See this annotation in the file changed.

@github-actions github-actions / all

no method named `possible_values` found for struct `clap::Arg` in the current scope

error[E0599]: no method named `possible_values` found for struct `clap::Arg` in the current scope
    --> core/tauri/src/api/cli.rs:254:54
     |
254  |     clap_arg = bind_string_slice_arg!(arg, clap_arg, possible_values);
     |                                                      ^^^^^^^^^^^^^^^
     |
help: there is a method `get_possible_values` with a similar name, but with different arguments
    --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/clap_builder-4.5.23/src/builder/arg.rs:4243:5
     |
4243 |     pub fn get_possible_values(&self) -> Vec<PossibleValue> {
     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Check failure on line 249 in core/tauri/src/api/cli.rs

See this annotation in the file changed.

@github-actions github-actions / all

no method named `multiple_occurrences` found for struct `clap::Arg` in the current scope

error[E0599]: no method named `multiple_occurrences` found for struct `clap::Arg` in the current scope
   --> core/tauri/src/api/cli.rs:249:25
    |
249 |     clap_arg = clap_arg.multiple_occurrences(arg.multiple_occurrences);
    |                         ^^^^^^^^^^^^^^^^^^^^ method not found in `clap::Arg`

Check failure on line 246 in core/tauri/src/api/cli.rs

See this annotation in the file changed.

@github-actions github-actions / all

no method named `multiple_values` found for struct `clap::Arg` in the current scope

error[E0599]: no method named `multiple_values` found for struct `clap::Arg` in the current scope
   --> core/tauri/src/api/cli.rs:246:23
    |
246 |   clap_arg = clap_arg.multiple_values(arg.multiple);
    |                       ^^^^^^^^^^^^^^^ method not found in `clap::Arg`

Check failure on line 245 in core/tauri/src/api/cli.rs

See this annotation in the file changed.

@github-actions github-actions / all

no method named `takes_value` found for struct `clap::Arg` in the current scope

error[E0599]: no method named `takes_value` found for struct `clap::Arg` in the current scope
   --> core/tauri/src/api/cli.rs:245:23
    |
245 |   clap_arg = clap_arg.takes_value(arg.takes_value);
    |                       ^^^^^^^^^^^ method not found in `clap::Arg`

Check failure on line 176 in core/tauri/src/api/cli.rs

See this annotation in the file changed.

@github-actions github-actions / all

no method named `value_of` found for reference `&clap::ArgMatches` in the current scope

error[E0599]: no method named `value_of` found for reference `&clap::ArgMatches` in the current scope
   --> core/tauri/src/api/cli.rs:176:12
    |
175 | /         matches
176 | |           .value_of(arg.name.clone())
    | |           -^^^^^^^^ method not found in `&ArgMatches`
    | |___________|
    |

Check failure on line 164 in core/tauri/src/api/cli.rs

See this annotation in the file changed.

@github-actions github-actions / all

no method named `values_of` found for reference `&clap::ArgMatches` in the current scope

error[E0599]: no method named `values_of` found for reference `&clap::ArgMatches` in the current scope
   --> core/tauri/src/api/cli.rs:164:12
    |
163 | /         matches
164 | |           .values_of(arg.name.clone())
    | |           -^^^^^^^^^ method not found in `&ArgMatches`
    | |___________|
    |

Check failure on line 158 in core/tauri/src/api/cli.rs

See this annotation in the file changed.

@github-actions github-actions / all

no method named `occurrences_of` found for reference `&clap::ArgMatches` in the current scope

error[E0599]: no method named `occurrences_of` found for reference `&clap::ArgMatches` in the current scope
   --> core/tauri/src/api/cli.rs:158:33
    |
158 |       let occurrences = matches.occurrences_of(arg.name.clone());
    |                                 ^^^^^^^^^^^^^^ method not found in `&ArgMatches`

Check failure on line 32 in core/tauri/src/api/cli.rs

See this annotation in the file changed.

@github-actions github-actions / all

attempted to take value of method `kind` on type `&clap::error::Error`

error[E0615]: attempted to take value of method `kind` on type `&clap::error::Error`
  --> core/tauri/src/api/cli.rs:32:12
   |
32 |       self.kind
   |            ^^^^ method, not a field
   |
help: use parentheses to call the method
   |
32 |       self.kind()
   |                ++

Check failure on line 233 in core/tauri/src/api/cli.rs

See this annotation in the file changed.

@github-actions github-actions / all

struct takes 0 lifetime arguments but 1 lifetime argument was supplied

error[E0107]: struct takes 0 lifetime arguments but 1 lifetime argument was supplied
   --> core/tauri/src/api/cli.rs:233:55
    |
233 | fn get_arg<'a>(arg_name: &'a str, arg: &'a CliArg) -> Arg<'a> {
    |                                                       ^^^---- help: remove the unnecessary generics
    |                                                       |
    |                                                       expected 0 lifetime arguments
    |
note: struct defined here, with 0 lifetime parameters
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/clap_builder-4.5.23/src/builder/arg.rs:60:12
    |
60  | pub struct Arg {
    |            ^^^

Check failure on line 31 in core/tauri/src/api/cli.rs

See this annotation in the file changed.

@github-actions github-actions / all

cannot find type `ErrorKind` in crate `clap`

error[E0412]: cannot find type `ErrorKind` in crate `clap`
  --> core/tauri/src/api/cli.rs:31:29
   |
31 |     fn kind(&self) -> clap::ErrorKind {
   |                             ^^^^^^^^^ not found in `clap`
   |
help: consider importing one of these enums
   |
24 +   use crate::api::clap::error::ErrorKind;
   |
24 +   use std::io::ErrorKind;
   |
24 +   use clap::error::ErrorKind;
   |
24 +   use futures_util::io::ErrorKind;
   |
     and 2 other candidates
help: if you import `ErrorKind`, refer to it directly
   |
31 -     fn kind(&self) -> clap::ErrorKind {
31 +     fn kind(&self) -> ErrorKind {
   |

Check failure on line 27 in core/tauri/src/api/cli.rs

See this annotation in the file changed.

@github-actions github-actions / all

cannot find type `ErrorKind` in crate `clap`

error[E0412]: cannot find type `ErrorKind` in crate `clap`
  --> core/tauri/src/api/cli.rs:27:29
   |
27 |     fn kind(&self) -> clap::ErrorKind;
   |                             ^^^^^^^^^ not found in `clap`
   |
help: consider importing one of these enums
   |
24 +   use crate::api::clap::error::ErrorKind;
   |
24 +   use std::io::ErrorKind;
   |
24 +   use clap::error::ErrorKind;
   |
24 +   use futures_util::io::ErrorKind;
   |
     and 2 other candidates
help: if you import `ErrorKind`, refer to it directly
   |
27 -     fn kind(&self) -> clap::ErrorKind;
27 +     fn kind(&self) -> ErrorKind;
   |

Check failure on line 24 in core/tauri/src/api/cli.rs

See this annotation in the file changed.

@github-actions github-actions / all

cannot find type `App` in crate `clap`

error[E0412]: cannot find type `App` in crate `clap`
  --> core/tauri/src/api/cli.rs:24:39
   |
24 |   pub type ClapCommand<'help> = clap::App<'help>;
   |                                       ^^^ not found in `clap`
   |
help: consider importing one of these items
   |
24 +   use crate::App;
   |
24 +   use crate::api::cli::App;
   |
help: if you import `App`, refer to it directly
   |
24 -   pub type ClapCommand<'help> = clap::App<'help>;
24 +   pub type ClapCommand<'help> = App<'help>;
   |

Check failure on line 12 in core/tauri/src/api/cli.rs

See this annotation in the file changed.

@github-actions github-actions / all

unresolved import `clap::ErrorKind`

error[E0432]: unresolved import `clap::ErrorKind`
  --> core/tauri/src/api/cli.rs:12:29
   |
12 | use clap::{Arg, ArgMatches, ErrorKind};
   |                             ^^^^^^^^^ no `ErrorKind` in the root
   |
   = help: consider importing one of these enums instead:
           crate::api::clap::error::ErrorKind
           std::io::ErrorKind
           clap::error::ErrorKind
           futures_util::io::ErrorKind
           notify_rust::error::ErrorKind
           tokio::io::ErrorKind