Skip to content

Commit 4b6c82e

Browse files
committed
cargo fmt
1 parent b99fcbb commit 4b6c82e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

splashsurf/src/reconstruction.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,13 +265,13 @@ mod arguments {
265265
use crate::io;
266266
use anyhow::{anyhow, Context};
267267
use log::info;
268+
use regex::{escape, Regex};
268269
use splashsurf_lib::nalgebra::Vector3;
269270
use splashsurf_lib::{Aabb3d, ParticleDensityComputationStrategy};
270271
use std::convert::TryFrom;
271272
use std::fs;
272273
use std::path::{Path, PathBuf};
273274
use walkdir::WalkDir;
274-
use regex::{Regex, escape};
275275

276276
/// All arguments that can be supplied to the surface reconstruction tool converted to useful types
277277
pub struct ReconstructionRunnerArgs {
@@ -474,7 +474,8 @@ mod arguments {
474474
.split_once("{}")
475475
.expect("sequence input filename has to include pattern");
476476

477-
let input_re_str = format!(r"{}(\d+){}", escape(input_prefix), escape(input_suffix));
477+
let input_re_str =
478+
format!(r"{}(\d+){}", escape(input_prefix), escape(input_suffix));
478479
let input_re = Regex::new(&input_re_str).expect("expected a valid regex");
479480

480481
let mut paths = Vec::new();
@@ -489,7 +490,9 @@ mod arguments {
489490
{
490491
let entry_name = entry.file_name().to_string_lossy();
491492
if input_re.is_match(&entry_name) {
492-
let index = &input_re.captures(&entry_name).expect("there should be a match")[1];
493+
let index = &input_re
494+
.captures(&entry_name)
495+
.expect("there should be a match")[1];
493496

494497
let input_filename_i = entry_name.as_ref();
495498
let input_file_i = input_dir.join(input_filename_i);

0 commit comments

Comments
 (0)