mirror of
https://github.com/Cykooz/fast_image_resize.git
synced 2026-11-29 04:01:35 +00:00
Improved foreach_with_pre_reading()
This commit is contained in:
1 parent
a706ebb68c
commit
42ae686871
1 file changed
+2
-2
+2
-2
@@ -2,8 +2,8 @@
|
||||
#[inline(always)]
|
||||
pub(crate) fn foreach_with_pre_reading<D, I>(
|
||||
mut iter: impl Iterator<Item = I>,
|
||||
read_data: fn(src: I) -> D,
|
||||
process_data: fn(data: D),
|
||||
mut read_data: impl FnMut(I) -> D,
|
||||
mut process_data: impl FnMut(D),
|
||||
) {
|
||||
let mut next_data: D;
|
||||
if let Some(src) = iter.next() {
|
||||
|
||||
Reference in new issue
Block a user