Skip to content

Commit f096539

Browse files
committed
Rust 1.21 stuff, update libs
1 parent 05fe3ae commit f096539

File tree

2 files changed

+64
-65
lines changed

2 files changed

+64
-65
lines changed

Cargo.lock

Lines changed: 60 additions & 56 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/yuv.rs

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -131,15 +131,10 @@ impl Yuv {
131131
}
132132
};
133133

134-
for pix in self.pix_y.iter_mut() {
135-
*pix = multiplier(pix)
136-
}
137-
for pix in self.pix_u.iter_mut() {
138-
*pix = multiplier(pix)
139-
}
140-
for pix in self.pix_v.iter_mut() {
141-
*pix = multiplier(pix)
142-
}
134+
self.pix_y.iter_mut().for_each(|pix| *pix = multiplier(pix));
135+
self.pix_u.iter_mut().for_each(|pix| *pix = multiplier(pix));
136+
self.pix_v.iter_mut().for_each(|pix| *pix = multiplier(pix));
137+
143138
self
144139
}
145140

0 commit comments

Comments
 (0)