utf-8: better variable name for lambda
This commit is contained in:
parent
fdc37548f5
commit
d5a27c99e6
|
@ -47,7 +47,7 @@ impl RenderCanvas for Canvas {
|
||||||
if rows.len() == 2 {
|
if rows.len() == 2 {
|
||||||
rows[0].iter().zip(rows[1]).map(|(top,bot)| (top * 2 + bot)).collect::<Vec<u8>>()
|
rows[0].iter().zip(rows[1]).map(|(top,bot)| (top * 2 + bot)).collect::<Vec<u8>>()
|
||||||
} else {
|
} else {
|
||||||
rows[0].iter().map(|a| (a * 2)).collect::<Vec<u8>>()
|
rows[0].iter().map(|top| (top * 2)).collect::<Vec<u8>>()
|
||||||
}
|
}
|
||||||
}.iter()
|
}.iter()
|
||||||
// Mapping those 2-bit numbers to corresponding pixels.
|
// Mapping those 2-bit numbers to corresponding pixels.
|
||||||
|
|
Loading…
Reference in a new issue