Skip to content

Commit

Permalink
Make exit more rusty.
Browse files Browse the repository at this point in the history
  • Loading branch information
Euphrasiologist committed Jun 1, 2022
1 parent ce38b15 commit fe16c62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/src/gfatk/linear.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
<span class="comment">// as we would in `gfatk fasta`</span>
<span class="macro">eprintln!</span>(<span class="string">&quot;[+]\tOnly a single segment detected. Printing sequence and exiting.&quot;</span>);
<span class="ident">gfa</span>.<span class="ident">print_sequences</span>()<span class="question-mark">?</span>;
<span class="ident">std::process::exit</span>(<span class="number">0</span>);
<span class="kw">return</span> <span class="prelude-val">Ok</span>(())
}

<span class="comment">// check how many subgraphs there are</span>
Expand Down
2 changes: 1 addition & 1 deletion src/linear.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ pub fn linear(matches: &clap::ArgMatches) -> Result<()> {
// as we would in `gfatk fasta`
eprintln!("[+]\tOnly a single segment detected. Printing sequence and exiting.");
gfa.print_sequences()?;
std::process::exit(0);
return Ok(())
}

// check how many subgraphs there are
Expand Down

0 comments on commit fe16c62

Please sign in to comment.