Skip to content

Dependency Management #175

Dependency Management

Dependency Management #175

GitHub Actions / Clippy Output failed Sep 20, 2024 in 0s

Clippy Output

1 error, 9 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 1
Warning 9
Note 0
Help 0

Versions

  • rustc 1.81.0 (eeb90cda1 2024-09-04)
  • cargo 1.81.0 (2dbb1af80 2024-08-20)
  • clippy 0.1.81 (eeb90cd 2024-09-04)

Annotations

Check failure on line 58 in src/backends/mod.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Output

the method `entry` exists for struct `HashMap<(BuildSystem, TargetLanguage), Vec<&App>>`, but its trait bounds were not satisfied

error[E0599]: the method `entry` exists for struct `HashMap<(BuildSystem, TargetLanguage), Vec<&App>>`, but its trait bounds were not satisfied
  --> src/backends/mod.rs:58:14
   |
57 | /         by_build_system
58 | |             .entry((app.build_system(), app.target))
   | |             -^^^^^ method cannot be called on `HashMap<(BuildSystem, TargetLanguage), Vec<&App>>` due to unsatisfied trait bounds
   | |_____________|
   |
   |
  ::: src/args.rs:8:1
   |
8  |   pub enum TargetLanguage {
   |   ----------------------- doesn't satisfy `args::TargetLanguage: std::cmp::Eq`
   |
   = note: the following trait bounds were not satisfied:
           `args::TargetLanguage: std::cmp::Eq`
           which is required by `(args::BuildSystem, args::TargetLanguage): std::cmp::Eq`
help: consider annotating `args::TargetLanguage` with `#[derive(Eq, PartialEq)]`
  --> src/args.rs:8:1
   |
8  + #[derive(Eq, PartialEq)]
9  | pub enum TargetLanguage {
   |

Check warning on line 137 in src/args.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Output

use of deprecated function `<args::CommandLineArgs as clap::Args>::augment_args::bare_action`: `#[arg(action)]` is now the default and is no longer needed`

warning: use of deprecated function `<args::CommandLineArgs as clap::Args>::augment_args::bare_action`: `#[arg(action)]` is now the default and is no longer needed`
   --> src/args.rs:137:25
    |
137 |     #[clap(short, long, action)]
    |                         ^^^^^^

Check warning on line 137 in src/args.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Output

use of deprecated function `<args::CommandLineArgs as clap::Args>::augment_args::old_attribute`: Attribute `#[clap(...)]` has been deprecated in favor of `#[arg(...)]`

warning: use of deprecated function `<args::CommandLineArgs as clap::Args>::augment_args::old_attribute`: Attribute `#[clap(...)]` has been deprecated in favor of `#[arg(...)]`
   --> src/args.rs:137:7
    |
137 |     #[clap(short, long, action)]
    |       ^^^^

Check warning on line 126 in src/args.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Output

use of deprecated function `<args::CommandLineArgs as clap::Args>::augment_args::old_attribute`: Attribute `#[clap(...)]` has been deprecated in favor of `#[command(...)]`

warning: use of deprecated function `<args::CommandLineArgs as clap::Args>::augment_args::old_attribute`: Attribute `#[clap(...)]` has been deprecated in favor of `#[command(...)]`
   --> src/args.rs:126:3
    |
126 | #[clap(about = "Build system for the Lingua Franca coordination language", long_about = None)]
    |   ^^^^

Check warning on line 125 in src/args.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Output

use of deprecated function `<args::CommandLineArgs as clap::Args>::augment_args::old_attribute`: Attribute `#[clap(...)]` has been deprecated in favor of `#[command(...)]`

warning: use of deprecated function `<args::CommandLineArgs as clap::Args>::augment_args::old_attribute`: Attribute `#[clap(...)]` has been deprecated in favor of `#[command(...)]`
   --> src/args.rs:125:3
    |
125 | #[clap(version = env!("CARGO_PKG_VERSION"))]
    |   ^^^^

Check warning on line 124 in src/args.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Output

use of deprecated function `<args::CommandLineArgs as clap::Args>::augment_args::old_attribute`: Attribute `#[clap(...)]` has been deprecated in favor of `#[command(...)]`

warning: use of deprecated function `<args::CommandLineArgs as clap::Args>::augment_args::old_attribute`: Attribute `#[clap(...)]` has been deprecated in favor of `#[command(...)]`
   --> src/args.rs:124:3
    |
124 | #[clap(author = "[email protected]")]
    |   ^^^^

Check warning on line 123 in src/args.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Output

use of deprecated function `<args::CommandLineArgs as clap::Args>::augment_args::old_attribute`: Attribute `#[clap(...)]` has been deprecated in favor of `#[command(...)]`

warning: use of deprecated function `<args::CommandLineArgs as clap::Args>::augment_args::old_attribute`: Attribute `#[clap(...)]` has been deprecated in favor of `#[command(...)]`
   --> src/args.rs:123:3
    |
123 | #[clap(name = "Lingua Franca package manager and build tool")]
    |   ^^^^

Check warning on line 7 in src/args.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Output

use of deprecated function `<args::TargetLanguage as clap::ValueEnum>::to_possible_value::old_attribute`: Attribute `#[clap(...)]` has been deprecated in favor of `#[value(...)]`

warning: use of deprecated function `<args::TargetLanguage as clap::ValueEnum>::to_possible_value::old_attribute`: Attribute `#[clap(...)]` has been deprecated in favor of `#[value(...)]`
 --> src/args.rs:7:3
  |
7 | #[clap(rename_all = "lowercase")]
  |   ^^^^
  |
  = note: `#[warn(deprecated)]` on by default

Check warning on line 43 in src/package/mod.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Output

constants have by default a `'static` lifetime

warning: constants have by default a `'static` lifetime
  --> src/package/mod.rs:43:32
   |
43 | const DEFAULT_LIBRARY_FOLDER: &'static str = "lib";
   |                               -^^^^^^^---- help: consider removing `'static`: `&str`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes

Check warning on line 40 in src/package/mod.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy Output

constants have by default a `'static` lifetime

warning: constants have by default a `'static` lifetime
  --> src/package/mod.rs:40:35
   |
40 | const DEFAULT_EXECUTABLE_FOLDER: &'static str = "src";
   |                                  -^^^^^^^---- help: consider removing `'static`: `&str`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes
   = note: `#[warn(clippy::redundant_static_lifetimes)]` on by default