summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorsyn <isaqtm@gmail.com>2020-01-13 23:05:34 +0300
committersyn <isaqtm@gmail.com>2020-01-13 23:09:22 +0300
commit8b4941846fe0fd9b3f5db1a773b5808cece31c8d (patch)
treea6d15a6f9b2003eac3a3c983ee7da77ae955a1e9 /src/main.rs
parent36d031aa0a874646174f042efeacca0035c177bd (diff)
downloadevr-8b4941846fe0fd9b3f5db1a773b5808cece31c8d.tar.gz
Some refactoring
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/main.rs b/src/main.rs
index af6a547..0e97682 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,4 +1,4 @@
-use clap::{AppSettings};
+use clap::AppSettings;
use structopt::StructOpt;
use env_logger;
use log::{ trace, error };
@@ -53,15 +53,15 @@ fn main() {
trace!("{:#?}", config);
- let (action, result) =
- if src_path.exists() {
- ("run", config.run(&src_path))
- } else {
- ("make", config.make(&src_path))
- };
+ let result =
+ if src_path.exists() {
+ config.run(&src_path)
+ } else {
+ config.make(&src_path)
+ };
match result {
- Ok(_) => trace!("ok {}", action),
+ Ok(_) => trace!("ok"),
Err(err) => error!("{}", err)
}
}