feat: table view for follow set #37
ci.yml
on: push
stable / fmt
11s
nightly / doc
20s
ubuntu / stable / coverage
34s
Spell Check
4s
Matrix: clippy
Matrix: os-check
Matrix: required
Annotations
7 warnings
you should consider adding a `Default` implementation for `LR0ItemSet<'grammar>`:
src/lr0/core.rs#L111
warning: you should consider adding a `Default` implementation for `LR0ItemSet<'grammar>`
--> src/lr0/core.rs:111:5
|
111 | / pub fn new() -> Self {
112 | | Self {
113 | | items: HashSet::new(),
114 | | }
115 | | }
| |_____^
|
= 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
|
110 + impl<'grammar> Default for LR0ItemSet<'grammar> {
111 + fn default() -> Self {
112 + Self::new()
113 + }
114 + }
|
|
this lifetime isn't used in the function definition:
src/lr0/core.rs#L44
warning: this lifetime isn't used in the function definition
--> src/lr0/core.rs:44:23
|
44 | 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#L40
warning: struct `LR0Closure` has a public `len` method, but no `is_empty` method
--> src/lr0/core.rs:40:5
|
40 | 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
|
associated items `new`, `get_index_of`, and `get` are never used:
src/slr/helper.rs#L15
warning: associated items `new`, `get_index_of`, and `get` are never used
--> src/slr/helper.rs:15:12
|
14 | impl<'grammar> IndexedGrammar<'grammar> {
| --------------------------------------- associated items in this implementation
15 | pub fn new(grammar: &'grammar Grammar) -> IndexedGrammar<'grammar> {
| ^^^
...
34 | pub fn get_index_of(&self, expr: &Expression) -> Option<usize> {
| ^^^^^^^^^^^^
...
38 | pub(crate) fn get(&self, expr: &Expression) -> Option<Production> {
| ^^^
|
associated items `new`, `shift`, `reduce`, `goto`, and `build` are never used:
src/slr/builder.rs#L63
warning: associated items `new`, `shift`, `reduce`, `goto`, and `build` are never used
--> src/slr/builder.rs:63:12
|
62 | impl<'grammar> SLRTableBuilder<'grammar> {
| ---------------------------------------- associated items in this implementation
63 | pub fn new(
| ^^^
...
83 | fn shift(&self, from: usize, via: &'grammar Term) {
| ^^^^^
...
93 | fn reduce(&self, index: usize, lr0: &LR0Item) {
| ^^^^^^
...
103 | fn goto(&self, from: usize, via: &'grammar Term) {
| ^^^^
...
114 | pub fn build(self) -> SLRTable<'grammar> {
| ^^^^^
|
struct `SLRTableBuilder` is never constructed:
src/slr/builder.rs#L55
warning: struct `SLRTableBuilder` is never constructed
--> src/slr/builder.rs:55:12
|
55 | pub struct SLRTableBuilder<'grammar> {
| ^^^^^^^^^^^^^^^
|
= 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/
|