Skip to content

chore(deps): bump the dependencies group with 2 updates (#30) #97

chore(deps): bump the dependencies group with 2 updates (#30)

chore(deps): bump the dependencies group with 2 updates (#30) #97

Triggered via push January 6, 2025 12:29
Status Success
Total duration 1m 21s
Artifacts

ci.yml

on: push
stable / fmt
8s
stable / fmt
nightly / doc
20s
nightly / doc
ubuntu / stable / coverage
33s
ubuntu / stable / coverage
Spell Check
3s
Spell Check
Matrix: clippy
Matrix: os-check
Matrix: required
Fit to window
Zoom out
Zoom in

Annotations

20 warnings
Spell Check
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
stable / fmt
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
the following explicit lifetimes could be elided: 'grammar: src/slr/core.rs#L69
warning: the following explicit lifetimes could be elided: 'grammar --> src/slr/core.rs:69:6 | 69 | impl<'grammar> Display for SLRTable<'grammar> { | ^^^^^^^^ ^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 69 - impl<'grammar> Display for SLRTable<'grammar> { 69 + impl Display for SLRTable<'_> { |
you seem to use `.enumerate()` and immediately discard the index: src/slr/core.rs#L57
warning: you seem to use `.enumerate()` and immediately discard the index --> src/slr/core.rs:57:27 | 57 | self.table.iter().enumerate().for_each(|(_, table)| { | ^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_enumerate_index = note: `#[warn(clippy::unused_enumerate_index)]` on by default help: remove the `.enumerate()` call | 57 - self.table.iter().enumerate().for_each(|(_, table)| { 57 + self.table.iter().for_each(|table| { |
the following explicit lifetimes could be elided: 'grammar: src/slr/core.rs#L40
warning: the following explicit lifetimes could be elided: 'grammar --> src/slr/core.rs:40:6 | 40 | impl<'grammar> SLRTable<'grammar> { | ^^^^^^^^ ^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 40 - impl<'grammar> SLRTable<'grammar> { 40 + impl SLRTable<'_> { |
direct implementation of `ToString`: src/slr/core.rs#L18
warning: direct implementation of `ToString` --> src/slr/core.rs:18:1 | 18 | / impl ToString for SLRInstruction { 19 | | fn to_string(&self) -> String { 20 | | match self { 21 | | SLRInstruction::Reduce(i) => format!("r{}", i), ... | 26 | | } 27 | | } | |_^ | = help: prefer implementing `Display` instead = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_trait_impl = note: `#[warn(clippy::to_string_trait_impl)]` on by default
you should consider adding a `Default` implementation for `LR0ItemSet<'grammar>`: src/lr0/core.rs#L168
warning: you should consider adding a `Default` implementation for `LR0ItemSet<'grammar>` --> src/lr0/core.rs:168:5 | 168 | / pub fn new() -> Self { 169 | | Self { 170 | | items: HashSet::new(), 171 | | } 172 | | } | |_____^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default = note: `#[warn(clippy::new_without_default)]` on by default help: try adding this | 167 + impl<'grammar> Default for LR0ItemSet<'grammar> { 168 + fn default() -> Self { 169 + Self::new() 170 + } 171 + } |
the following explicit lifetimes could be elided: 'grammar: src/lr0/core.rs#L135
warning: the following explicit lifetimes could be elided: 'grammar --> src/lr0/core.rs:135:6 | 135 | impl<'grammar> Display for LR0ItemSet<'grammar> { | ^^^^^^^^ ^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 135 - impl<'grammar> Display for LR0ItemSet<'grammar> { 135 + impl Display for LR0ItemSet<'_> { |
the following explicit lifetimes could be elided: 'grammar: src/lr0/core.rs#L119
warning: the following explicit lifetimes could be elided: 'grammar --> src/lr0/core.rs:119:6 | 119 | impl<'grammar> Display for LR0Item<'grammar> { | ^^^^^^^^ ^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes = note: `#[warn(clippy::needless_lifetimes)]` on by default help: elide the lifetimes | 119 - impl<'grammar> Display for LR0Item<'grammar> { 119 + impl Display for LR0Item<'_> { |
this lifetime isn't used in the function definition: src/lr0/core.rs#L100
warning: this lifetime isn't used in the function definition --> src/lr0/core.rs:100:23 | 100 | pub fn transition<'a>(&self, from: usize, via: &Term) -> Option<usize> { | ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes = note: `#[warn(clippy::extra_unused_lifetimes)]` on by default
struct `LR0Closure` has a public `len` method, but no `is_empty` method: src/lr0/core.rs#L96
warning: struct `LR0Closure` has a public `len` method, but no `is_empty` method --> src/lr0/core.rs:96:5 | 96 | pub fn len(&self) -> usize { | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_without_is_empty = note: `#[warn(clippy::len_without_is_empty)]` on by default
you are using an explicit closure for copying elements: src/lr0/core.rs#L51
warning: you are using an explicit closure for copying elements --> src/lr0/core.rs:51:20 | 51 | .chain(self.transitions.values().map(|i| *i)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider calling the dedicated `copied` method: `self.transitions.values().copied()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_clone = note: `#[warn(clippy::map_clone)]` on by default
associated items `new`, `get`, and `set` are never used: src/utils/table.rs#L43
warning: associated items `new`, `get`, and `set` are never used --> src/utils/table.rs:43:8 | 42 | impl<Row: Eq + Hash, Col: Eq + Hash, V> Table<Row, Col, V> { | ---------------------------------------------------------- associated items in this implementation 43 | fn new() -> Self { | ^^^ ... 49 | fn get(&self, row: &Row, col: &Col) -> Option<&V> { | ^^^ ... 53 | fn set(&mut self, row: Row, col: Col, v: V) { | ^^^
field `map` is never read: src/utils/table.rs#L39
warning: field `map` is never read --> src/utils/table.rs:39:5 | 38 | pub struct Table<Row: Eq + Hash, Col: Eq + Hash, V> { | ----- field in this struct 39 | map: HashMap<(Row, Col), V>, | ^^^ | = note: `#[warn(dead_code)]` on by default
elided lifetime has a name: src/lr0/builder.rs#L22
warning: elided lifetime has a name --> src/lr0/builder.rs:22:67 | 13 | impl<'grammar> LR0Builder<'grammar> { | -------- lifetime `'grammar` declared here ... 22 | pub fn build(mut self, augmentation: &'grammar Production) -> LR0Closure { | ^^^^^^^^^^ this elided lifetime gets resolved as `'grammar` | = note: `#[warn(elided_named_lifetimes)]` on by default
stable / clippy
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
nightly / doc
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
ubuntu / stable / test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
ubuntu-latest / stable / test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
ubuntu / stable / coverage
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636