Skip to content

Commit

Permalink
Simplify arguments.
Browse files Browse the repository at this point in the history
  • Loading branch information
dariusc93 committed Dec 13, 2018
1 parent 09dc4b0 commit a87e158
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,7 @@ fn main() {
match torchbear_lib::ApplicationBuilder::new()
.log_level(*matches.value_of("log").map(|l| levels.get(&l).unwrap()).unwrap())
.log_everything(matches.value_of("log scope").unwrap() == "everything")
.start(match matches.values_of("interpreter") {
Some(values) => Some(values.map(|s| s.to_string()).collect()),
None => None
}) {
.start(matches.values_of("interpreter").map(|val| val.map(|s| s.to_string()).collect())) {
Ok(_) => {},
Err(e) => {
//To handle "AddrInUse". Will move this away in a later commit when refactoring
Expand Down

0 comments on commit a87e158

Please sign in to comment.