Skip to content

Commit

Permalink
lint: fix clippy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
igordejanovic committed Jan 2, 2024
1 parent 258fa89 commit e3c56b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ pub struct EC5 {
pub e_3: Box<E>,
}
#[derive(Debug, Clone)]
#[allow(clippy::enum_variant_names)]
pub enum E {
C1(EC1),
C2(EC2),
Expand Down
2 changes: 1 addition & 1 deletion rustemo-compiler/src/table/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@ impl<'g, 's> LRTable<'g, 's> {
assert!(shifts.len() <= 1);

let mut should_reduce = true;
if let Some(shift) = shifts.get(0) {
if let Some(shift) = shifts.first() {
// Shift/Reduce conflict. Use assoc and priority to
// resolve. For disambiguation treat ACCEPT action the
// same as SHIFT.
Expand Down

0 comments on commit e3c56b3

Please sign in to comment.