Skip to content

Commit ea1bb2b

Browse files
committed
Clippy fixes
1 parent 2339fa2 commit ea1bb2b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/benches/resize_rgba/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub fn criterion_benchmark(c: &mut Criterion) {
1717
let dimensions = img.dimensions();
1818
let src_bytes = img.as_bytes();
1919

20-
/*c.bench_function("Pic scale RGBA with alpha: Lanczos 3", |b| {
20+
c.bench_function("Pic scale RGBA with alpha: Lanczos 3", |b| {
2121
let copied: Vec<u8> = Vec::from(src_bytes);
2222
b.iter(|| {
2323
let mut scaler = Scaler::new(ResamplingFunction::Lanczos3);
@@ -410,7 +410,7 @@ pub fn criterion_benchmark(c: &mut Criterion) {
410410
panic!("Can't resize by accelerate");
411411
}
412412
})
413-
});*/
413+
});
414414

415415
c.bench_function("Pic scale RGBA1010102(N0: Lanczos 3/Speed", |b| {
416416
let copied: Vec<u8> = Vec::from(src_bytes);

src/neon/horizontal_ar30.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ unsafe fn neon_convolve_horizontal_rgba_rows_4_impl<const AR_TYPE: usize, const
114114
) {
115115
unsafe {
116116
const PRECISION: i32 = 16;
117-
const ROUNDING: i32 = 1 << (PRECISION - 1) - 1;
117+
const ROUNDING: i32 = (1 << (PRECISION - 1)) - 1;
118118

119119
let init = vdupq_n_s32(ROUNDING);
120120

@@ -301,7 +301,7 @@ unsafe fn neon_convolve_horizontal_rgba_row_impl<const AR_TYPE: usize, const AR_
301301
) {
302302
unsafe {
303303
const PRECISION: i32 = 16;
304-
const ROUNDING: i32 = 1 << (PRECISION - 1) - 1;
304+
const ROUNDING: i32 = (1 << (PRECISION - 1)) - 1;
305305

306306
let init = vdupq_n_s32(ROUNDING);
307307

0 commit comments

Comments
 (0)