diff options
author | syn <isaqtm@gmail.com> | 2021-03-11 23:25:32 +0300 |
---|---|---|
committer | syn <isaqtm@gmail.com> | 2021-03-11 23:25:32 +0300 |
commit | 53c57b71adcaf3b6de1ca2a99946692db2984582 (patch) | |
tree | 393d2619fe7f9fd9ef7861d830af92288a9f911c /src/main.rs | |
parent | 6ab586708cbc590f2b4f9265c3d07e491105970e (diff) | |
download | evr-53c57b71adcaf3b6de1ca2a99946692db2984582.tar.gz |
remove templates
this is kinda annoying and useless feature
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/main.rs b/src/main.rs index d1484a4..c85b30a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,7 +3,6 @@ extern crate lazy_static; use clap::{App, AppSettings, Arg, SubCommand}; use env_logger; use log::error; -use std::io::prelude::*; mod backends; mod conf; @@ -78,11 +77,6 @@ fn main() { error!("could not match backend"); } } else { - let template = config.get_template(&src_path).as_bytes(); - if let Err(err) = - std::fs::File::create(&src_path).and_then(|mut file| file.write_all(template)) - { - error!("{}", err); - } + error!("File {} does not exist", src_path.display()); }; } |