fix: fix missing lhs term when counting symbols #25
scheduled.yml
on: push
check-links
7s
ubuntu / nightly
18s
ubuntu / beta / updated
4s
Annotations
2 warnings
you should consider adding a `Default` implementation for `LR0ItemSet<'grammar>`:
src/lr0/core.rs#L76
warning: you should consider adding a `Default` implementation for `LR0ItemSet<'grammar>`
--> src/lr0/core.rs:76:5
|
76 | / pub fn new() -> Self {
77 | | Self {
78 | | items: HashSet::new(),
79 | | }
80 | | }
| |_____^
|
= 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
|
75 + impl<'grammar> Default for LR0ItemSet<'grammar> {
76 + fn default() -> Self {
77 + Self::new()
78 + }
79 + }
|
|
field `follow` is never read:
src/utils/follow/mod.rs#L8
warning: field `follow` is never read
--> src/utils/follow/mod.rs:8:16
|
7 | pub struct Follow<'grammar> {
| ------ field in this struct
8 | pub(crate) follow: HashMap<&'grammar Term, HashSet<&'grammar Term>>,
| ^^^^^^
|
= note: `#[warn(dead_code)]` on by default
|