clippy fixes

shared_unique
Wilfred Hughes 2022-11-03 22:18:56 +07:00
parent b662a2220b
commit 923989d1a8
2 changed files with 4 additions and 1 deletions

@ -377,7 +377,7 @@ fn allocate_if_new<'syn, 'b>(
// nestings for each syntax node pair.
if let Some(allocated) = existing.last() {
if existing.len() >= 2 {
return *allocated;
return allocated;
}
}

@ -15,6 +15,9 @@
// Has false positives on else if chains that sometimes have the same
// body for readability.
#![allow(clippy::if_same_then_else)]
// Purely stylistic, and ignores whether there are explanatory
// comments in the if/else.
#![allow(clippy::bool_to_int_with_if)]
mod constants;
mod diff;