Skip to content

chore(deps): bump indexmap from 2.3.0 to 2.4.0 in the dependencies group #78

chore(deps): bump indexmap from 2.3.0 to 2.4.0 in the dependencies group

chore(deps): bump indexmap from 2.3.0 to 2.4.0 in the dependencies group #78

Triggered via pull request August 19, 2024 10:01
Status Success
Total duration 1m 46s
Artifacts

ci.yml

on: pull_request
stable / fmt
10s
stable / fmt
nightly / doc
20s
nightly / doc
ubuntu / stable / coverage
36s
ubuntu / stable / coverage
Spell Check
4s
Spell Check
Matrix: clippy
Matrix: os-check
Matrix: required
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
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| { |
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 + } |
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
stable / clippy
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
stable / clippy
The following actions use a deprecated Node.js version and will be forced to run on node20: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/