Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
w1th0utnam3 committed Apr 19, 2023
1 parent e95925a commit ebeefdc
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions splashsurf/src/reconstruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();

Expand Down

0 comments on commit ebeefdc

Please sign in to comment.