utf-8: better variable name for lambda

This commit is contained in:
Vladimir Serov 2020-02-09 17:31:10 +03:00
parent fdc37548f5
commit d5a27c99e6

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.