Skip to content

chore: clippy fix

chore: clippy fix #21

Triggered via pull request November 19, 2023 04:41
Status Success
Total duration 30s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

scheduled.yml

on: pull_request
check-links
3s
check-links
ubuntu / nightly
20s
ubuntu / nightly
ubuntu / beta / updated
3s
ubuntu / beta / updated
Fit to window
Zoom out
Zoom in

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