Cargo clippy --all-features

This commit is contained in:
Steve Cook
2023-03-01 22:33:56 -05:00
parent daa1d86358
commit c5460debe1
7 changed files with 56 additions and 47 deletions

View File

@@ -846,7 +846,7 @@ impl RXingResultList {
result
}
fn internal_static_get_size(version: VersionRef, list: &Vec<RXingResultNode>) -> u32 {
fn internal_static_get_size(version: VersionRef, list: &[RXingResultNode]) -> u32 {
let result = list.iter().fold(0, |acc, node| acc + node.getSize(version));
result
}