mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-17 07:25:16 +00:00
Apply rustfmt layout to subpixel blur regression
This commit is contained in:
1 parent
c93c0bb36d
commit
47eaae523f
1 file changed
+1
-7
@@ -138,13 +138,7 @@ mod tests {
|
||||
if let Some(Separable::Kernel(k)) = Separable::of(¶ms) {
|
||||
// Calibrated subpixel kernels have tails below the visibility threshold.
|
||||
let center = k.len() / 2;
|
||||
let visible = k
|
||||
.iter()
|
||||
.enumerate()
|
||||
.filter(|(_, w)| **w * k[center] > 1e-6)
|
||||
.map(|(i, _)| i.abs_diff(center))
|
||||
.max()
|
||||
.unwrap_or(0);
|
||||
let visible = k.iter().enumerate().filter(|(_, w)| **w * k[center] > 1e-6).map(|(i, _)| i.abs_diff(center)).max().unwrap_or(0);
|
||||
assert_eq!(touched, dot.inflate(visible as i32), "radius {radius}");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user