Skip to content

chore(deps): bump the dependencies group across 1 directory with 5 updates #51

chore(deps): bump the dependencies group across 1 directory with 5 updates

chore(deps): bump the dependencies group across 1 directory with 5 updates #51

GitHub Actions / clippy failed Jan 27, 2025 in 0s

clippy

3 errors, 8 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 3
Warning 8
Note 0
Help 0

Versions

  • rustc 1.84.0 (9fc6b4312 2025-01-07)
  • cargo 1.84.0 (66221abde 2024-11-19)
  • clippy 0.1.84 (9fc6b43126 2025-01-07)

Annotations

Check warning on line 1949 in /home/runner/work/bnfgen/bnfgen/target/debug/build/bnfgen-f1747d953df54199/out/parser.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused variable: `comma`

warning: unused variable: `comma`
    --> /home/runner/work/bnfgen/bnfgen/target/debug/build/bnfgen-f1747d953df54199/out/parser.rs:1949:9
     |
1949 |     (_, comma, _): (usize, Option<Token>, usize),
     |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_comma`
     |
     = note: `#[warn(unused_variables)]` on by default

Check warning on line 73 in src/regex.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range`

warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range`
  --> src/regex.rs:73:36
   |
73 |                     let pick = rng.gen_range(range.start()..=range.end()) as char;
   |                                    ^^^^^^^^^

Check warning on line 71 in src/regex.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range`

warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range`
  --> src/regex.rs:71:35
   |
71 |                     let idx = rng.gen_range(0..bytes.iter().count());
   |                                   ^^^^^^^^^

Check warning on line 67 in src/regex.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range`

warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range`
  --> src/regex.rs:67:36
   |
67 |                     let pick = rng.gen_range(range.start()..=range.end());
   |                                    ^^^^^^^^^

Check warning on line 65 in src/regex.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range`

warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range`
  --> src/regex.rs:65:35
   |
65 |                     let idx = rng.gen_range(0..unicode.iter().count());
   |                                   ^^^^^^^^^

Check warning on line 60 in src/regex.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range`

warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range`
  --> src/regex.rs:60:31
   |
60 |                 let idx = rng.gen_range(0..alt.len());
   |                               ^^^^^^^^^

Check warning on line 53 in src/regex.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range`

warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range`
  --> src/regex.rs:53:33
   |
53 |                 for _ in 0..rng.gen_range(rep.min..=rep.max.unwrap_or(5)) {
   |                                 ^^^^^^^^^
   |
   = note: `#[warn(deprecated)]` on by default

Check failure on line 42 in src/grammar/checked.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

no method named `choose` found for struct `std::vec::Vec<&grammar::symbol::NonTerminal>` in the current scope

error[E0599]: no method named `choose` found for struct `std::vec::Vec<&grammar::symbol::NonTerminal>` in the current scope
  --> src/grammar/checked.rs:42:38
   |
41 |   ...                   *candidates
   |  ________________________-
42 | | ...                       .choose(state.rng())
   | |___________________________-^^^^^^
   |
   = help: items from traits can only be used if the trait is in scope
help: trait `IndexedRandom` which provides `choose` is implemented but not in scope; perhaps you want to import it
   |
1  + use rand::prelude::IndexedRandom;
   |
help: there is a method `choose_mut` with a similar name
   |
42 |                                     .choose_mut(state.rng())
   |                                      ~~~~~~~~~~

Check warning on line 6 in src/grammar/checked.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `rand::prelude::SliceRandom`

warning: unused import: `rand::prelude::SliceRandom`
 --> src/grammar/checked.rs:6:5
  |
6 | use rand::prelude::SliceRandom;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

Check failure on line 5 in src/grammar/production.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unresolved import `rand::distributions`

error[E0432]: unresolved import `rand::distributions`
 --> src/grammar/production.rs:5:11
  |
5 | use rand::distributions::WeightedIndex;
  |           ^^^^^^^^^^^^^ could not find `distributions` in `rand`

Check failure on line 4 in src/grammar/production.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unresolved import `rand::distributions`

error[E0432]: unresolved import `rand::distributions`
 --> src/grammar/production.rs:4:11
  |
4 | use rand::distributions::Distribution;
  |           ^^^^^^^^^^^^^ could not find `distributions` in `rand`