utf-8: better variable name for lambda

pull/42/head
Vladimir Serov 2020-02-09 17:31:10 +03:00
parent f2f82485dc
commit 9505e7a175
No known key found for this signature in database
GPG Key ID: 6BA7C26C3FDF7BB3
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ impl RenderCanvas for Canvas {
if rows.len() == 2 {
rows[0].iter().zip(rows[1]).map(|(top,bot)| (top * 2 + bot)).collect::<Vec<u8>>()
} else {
rows[0].iter().map(|a| (a * 2)).collect::<Vec<u8>>()
rows[0].iter().map(|top| (top * 2)).collect::<Vec<u8>>()
}
}.iter()
// Mapping those 2-bit numbers to corresponding pixels.