chore: clippy

This commit is contained in:
dundargoc 2024-02-06 23:18:27 +01:00 committed by Amaan Qureshi
parent a1870b6013
commit c8bd6705cf
No known key found for this signature in database
GPG key ID: E67890ADC4227273
36 changed files with 467 additions and 462 deletions

View file

@ -971,7 +971,7 @@ mod tests {
"row {i}b: {:?} ~~ {:?}",
row.left,
row.right
)
);
}
}
@ -1032,6 +1032,7 @@ mod tests {
}
#[test]
#[allow(clippy::single_range_in_vec_init)]
fn test_character_set_get_ranges() {
struct Row {
chars: Vec<char>,
@ -1061,7 +1062,7 @@ mod tests {
chars,
ruled_out_chars,
expected_ranges,
} in table.iter()
} in &table
{
let ruled_out_chars = ruled_out_chars.iter().map(|c: &char| *c as u32).collect();
let mut set = CharacterSet::empty();