Skip to content

Advance dependency body when symbol has been processed

Sign in for the full log view
GitHub Actions / clippy succeeded Sep 13, 2023 in 0s

clippy

11 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 11
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 warning on line 8 in pango-lexer/src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

field `len` is never read

warning: field `len` is never read
 --> pango-lexer/src/main.rs:8:9
  |
8 |     D { len: usize },
  |     -   ^^^
  |     |
  |     field in this variant
  |
  = note: `#[warn(dead_code)]` on by default

Check warning on line 379 in pango-lexer/src/regex/tokenizer.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

usage of `Iterator::fold` on a type that implements `Try`

warning: usage of `Iterator::fold` on a type that implements `Try`
   --> pango-lexer/src/regex/tokenizer.rs:377:14
    |
377 |               .fold(Some((digit_count, start)), |acc, d| {
    |  ______________^
378 | |                 acc.map(|(digit_count, n)| (digit_count + 1, (n << 4) + d))
379 | |             })
    | |______________^ help: use `try_fold` instead: `try_fold((digit_count, start), |acc, d| ...)`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_try_fold
    = note: `#[warn(clippy::manual_try_fold)]` on by default

Check warning on line 219 in pango-lexer/src/fsm/nfa/model.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

methods `with_transition` and `get_state` are never used

warning: methods `with_transition` and `get_state` are never used
   --> pango-lexer/src/fsm/nfa/model.rs:219:19
    |
160 | impl NfaBuilder {
    | --------------- methods in this implementation
...
219 |     pub(super) fn with_transition(mut self, start: StateId, end: StateId, input: Input) -> Self {
    |                   ^^^^^^^^^^^^^^^
...
268 |     pub(super) fn get_state(&self, state_id: StateId) -> &State {
    |                   ^^^^^^^^^
    |
    = note: `#[warn(dead_code)]` on by default

Check warning on line 90 in src/grammar.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

methods `first`, `first_body`, `first_bodies`, and `follow_set` are never used

warning: methods `first`, `first_body`, `first_bodies`, and `follow_set` are never used
   --> src/grammar.rs:90:8
    |
85  | impl<V, T> Grammar<V, T>
    | ------------------------ methods in this implementation
...
90  |     fn first(&self, variable: V) -> HashSet<&Symbol<V, T>> {
    |        ^^^^^
...
98  |     fn first_body<'a, B>(&'a self, variable: Option<V>, body: B) -> HashSet<&'a Symbol<V, T>>
    |        ^^^^^^^^^^
...
106 |     fn first_bodies<'a, Bs, B>(
    |        ^^^^^^^^^^^^
...
274 |     pub(super) fn follow_set(&self) -> HashMap<V, HashSet<&Symbol<V, T>>> {
    |                   ^^^^^^^^^^

Check warning on line 39 in src/grammar.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

method `iter_terminals` is never used

warning: method `iter_terminals` is never used
  --> src/grammar.rs:39:19
   |
35 | impl<V, T> Grammar<V, T>
   | ------------------------ method in this implementation
...
39 |     pub(crate) fn iter_terminals(&self) -> impl Iterator<Item = &T> {
   |                   ^^^^^^^^^^^^^^

Check warning on line 30 in src/grammar.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

method `iter_variables` is never used

warning: method `iter_variables` is never used
  --> src/grammar.rs:30:19
   |
24 | impl<V, T> Grammar<V, T> {
   | ------------------------ method in this implementation
...
30 |     pub(crate) fn iter_variables(&self) -> impl Iterator<Item = &V> {
   |                   ^^^^^^^^^^^^^^

Check warning on line 53 in src/cfsm/item.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

method `get_cursor_terminal` is never used

warning: method `get_cursor_terminal` is never used
  --> src/cfsm/item.rs:53:19
   |
28 | impl<V, T> ItemBody<V, T> {
   | ------------------------- method in this implementation
...
53 |     pub(super) fn get_cursor_terminal(&self) -> Option<&T> {
   |                   ^^^^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(dead_code)]` on by default

Check warning on line 184 in pango-lexer/src/fsm/nfa/sim.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused variable: `state_counters`

warning: unused variable: `state_counters`
   --> pango-lexer/src/fsm/nfa/sim.rs:184:13
    |
184 |             state_counters,
    |             ^^^^^^^^^^^^^^ help: try ignoring the field: `state_counters: _`
    |
    = note: `#[warn(unused_variables)]` on by default

Check warning on line 1 in pango-lexer/src/regex/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `ast::Ast`

warning: unused import: `ast::Ast`
 --> pango-lexer/src/regex/mod.rs:1:23
  |
1 | pub(crate) use self::{ast::Ast, parser::Parser};
  |                       ^^^^^^^^

Check warning on line 6 in pango-lexer/src/fsm/nfa/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unnecessary `pub(self)`

warning: unnecessary `pub(self)`
 --> pango-lexer/src/fsm/nfa/mod.rs:6:1
  |
6 | pub(self) use super::StateId;
  | ^^^^^^^^^ help: remove it
  |
  = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pub_self
  = note: `#[warn(clippy::needless_pub_self)]` on by default

Check warning on line 2 in pango-lexer/src/fsm/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `sim::NfaSimulator`

warning: unused import: `sim::NfaSimulator`
 --> pango-lexer/src/fsm/mod.rs:2:58
  |
2 |     nfa::{compiler::Compiler as NfaCompiler, model::Nfa, sim::NfaSimulator},
  |                                                          ^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default