From ebeefdce75fba8d05201e7105a3bab432f736b34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20L=C3=B6schner?= Date: Wed, 19 Apr 2023 12:45:15 +0200 Subject: [PATCH] cargo fmt --- splashsurf/src/reconstruction.rs | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/splashsurf/src/reconstruction.rs b/splashsurf/src/reconstruction.rs index 135e19e..cf84617 100644 --- a/splashsurf/src/reconstruction.rs +++ b/splashsurf/src/reconstruction.rs @@ -464,8 +464,12 @@ mod arguments { let input_file = &self.input_file; let output_file = &self.output_file; - let input_dir = input_file.parent().expect("expected an input path ending in a filename"); - let output_dir = output_file.parent().expect("expected an output path ending in a filename"); + let input_dir = input_file + .parent() + .expect("expected an input path ending in a filename"); + let output_dir = output_file + .parent() + .expect("expected an output path ending in a filename"); let input_pattern = input_file.file_name().unwrap().to_string_lossy(); let output_pattern = output_file.file_name().unwrap().to_string_lossy(); @@ -478,8 +482,15 @@ mod arguments { format!(r"{}(\d+){}", escape(input_prefix), escape(input_suffix)); let input_re = Regex::new(&input_re_str).expect("expected a valid regex"); - let input_root = if input_dir == Path::new("") { Path::new(".") } else { input_dir }; - info!("Looking for input sequence files in root \"{}\"", input_root.display()); + let input_root = if input_dir == Path::new("") { + Path::new(".") + } else { + input_dir + }; + info!( + "Looking for input sequence files in root \"{}\"", + input_root.display() + ); let mut paths = Vec::new();