Skip to content

Update Cargo Dependencies #378

Update Cargo Dependencies

Update Cargo Dependencies #378

GitHub Actions / clippy failed Aug 24, 2023 in 0s

clippy

4 errors

Details

Results

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

Versions

  • rustc 1.72.0 (5680fa18f 2023-08-23)
  • cargo 1.72.0 (103a7ff2e 2023-08-15)
  • clippy 0.1.72 (5680fa1 2023-08-23)

Annotations

Check failure on line 148 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

no function or associated item named `command` found for struct `Cli` in the current scope

error[E0599]: no function or associated item named `command` found for struct `Cli` in the current scope
   --> src/main.rs:148:25
    |
22  | struct Cli {
    | ---------- function or associated item `command` not found for this struct
...
148 |     let cmd = &mut Cli::command();
    |                         ^^^^^^^ function or associated item not found in `Cli`
    |
    = help: items from traits can only be used if the trait is in scope
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
    |
1   + use clap::CommandFactory;
    |

Check failure on line 26 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

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

error[E0599]: no method named `parse` found for struct `clap::Arg` in the current scope
  --> src/main.rs:26:31
   |
15 | #[derive(Parser)]
   |          ------ help: use associated function syntax instead: `clap::Arg::parse(from_occurrences)`
...
26 |     #[clap(long, short = 'v', parse(from_occurrences), global = true)]
   |                               ^^^^^ this is an associated function, not a method
   |
   = note: found the following associated functions; to be used as methods, functions must have a `self` parameter
note: the candidate is defined in the trait `clap::Parser`
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/clap_builder-4.4.0/src/derive.rs:26:5
   |
26 |     fn parse() -> Self {
   |     ^^^^^^^^^^^^^^^^^^

Check failure on line 26 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

cannot find value `from_occurrences` in this scope

error[E0425]: cannot find value `from_occurrences` in this scope
  --> src/main.rs:26:37
   |
26 |     #[clap(long, short = 'v', parse(from_occurrences), global = true)]
   |                                     ^^^^^^^^^^^^^^^^ not found in this scope

Check failure on line 10 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unresolved import `clap::IntoApp`

error[E0432]: unresolved import `clap::IntoApp`
  --> src/main.rs:10:12
   |
10 | use clap::{IntoApp, Parser, Subcommand};
   |            ^^^^^^^ no `IntoApp` in the root