Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Shnatsel committed Sep 29, 2024
1 parent 03be367 commit 5b705e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion benches/filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ fn bench_filter(c: &mut Criterion, filter: FilterType, bpp: u8) {
|b, two_rows| {
let (prev_row, curr_row) = two_rows.split_at(row_size);
let mut curr_row = curr_row.to_vec();
b.iter(|| benchable_apis::filter(filter, bpp, prev_row, curr_row.as_mut_slice(), &mut out));
b.iter(|| {
benchable_apis::filter(filter, bpp, prev_row, curr_row.as_mut_slice(), &mut out)
});
},
);
}
4 changes: 2 additions & 2 deletions src/filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ use crate::common::BytesPerPixel;
/// feature of Rust gets stabilized.
#[cfg(feature = "unstable")]
mod simd {
#[cfg(feature = "multiversioning")]
use multiversion::multiversion;
use std::simd::cmp::{SimdOrd, SimdPartialEq, SimdPartialOrd};
use std::simd::num::{SimdInt, SimdUint};
use std::simd::{u8x4, u8x8, LaneCount, Simd, SimdElement, SupportedLaneCount};
#[cfg(feature = "multiversioning")]
use multiversion::multiversion;

/// This is an equivalent of the `PaethPredictor` function from
/// [the spec](http://www.libpng.org/pub/png/spec/1.2/PNG-Filters.html#Filter-type-4-Paeth)
Expand Down

0 comments on commit 5b705e6

Please sign in to comment.