Skip to content

Commit

Permalink
style: make cargo fmt happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Patro committed May 31, 2022
1 parent 5e2a089 commit 745eb4a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ fn gen_random_kmer(k: usize) -> String {
s
}

/// Checks if the path pointed to by v exists. It can be
/// Checks if the path pointed to by v exists. It can be
/// any valid entity (e.g. disk file, FIFO, directory, etc.).
/// If there is any issue with permissions or failure to properly
/// resolve symlinks, or if the path is wrong, it returns
/// If there is any issue with permissions or failure to properly
/// resolve symlinks, or if the path is wrong, it returns
/// an Err(String), else Ok(()).
fn file_exists_validator(v: &str) -> Result<(), String> {
// NOTE: we explicitly *do not* check `is_file()` here
Expand All @@ -56,10 +56,10 @@ fn file_exists_validator(v: &str) -> Result<(), String> {
}
}

/// Checks if the path pointed to by v exists and is
/// a valid directory on disk. If there is any issue
/// with permissions or failure to properly
/// resolve symlinks, or if the path is wrong, it returns
/// Checks if the path pointed to by v exists and is
/// a valid directory on disk. If there is any issue
/// with permissions or failure to properly
/// resolve symlinks, or if the path is wrong, it returns
/// an Err(String), else Ok(()).
fn directory_exists_validator(v: &str) -> Result<(), String> {
if !Path::new(v).is_dir() {
Expand Down

0 comments on commit 745eb4a

Please sign in to comment.