Skip to content

Commit 96db165

Browse files
committed
Run cargo fmt
Signed-off-by: netthier <[email protected]>
1 parent b32d16b commit 96db165

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/isoringbuilder.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,12 @@ struct Fragment {
4949
/// * `threshold` - The threshold value.
5050
/// * `dx` - The number of columns in the grid.
5151
/// * `dy` - The number of rows in the grid.
52-
pub fn contour_rings(values: &[Float], threshold: Float, dx: usize, dy: usize) -> Result<Vec<Ring>> {
52+
pub fn contour_rings(
53+
values: &[Float],
54+
threshold: Float,
55+
dx: usize,
56+
dy: usize,
57+
) -> Result<Vec<Ring>> {
5358
let mut isoring = IsoRingBuilder::new(dx, dy);
5459
isoring.compute(values, threshold)
5560
}
@@ -137,12 +142,7 @@ impl IsoRingBuilder {
137142
t1 = (values[(y * dx + dx + x + 1) as usize] >= threshold) as usize;
138143
t3 = t2;
139144
t2 = (values[(y * dx + x + 1) as usize] >= threshold) as usize;
140-
case_stitch!(
141-
t0 | t1 << 1 | t2 << 2 | t3 << 3,
142-
x,
143-
y,
144-
&mut result
145-
);
145+
case_stitch!(t0 | t1 << 1 | t2 << 2 | t3 << 3, x, y, &mut result);
146146
x += 1;
147147
}
148148
case_stitch!(t1 | t2 << 3, x, y, &mut result);

0 commit comments

Comments
 (0)