From eab4a4a7cb2e34da5651db00f422dc448bc04b08 Mon Sep 17 00:00:00 2001 From: Trivernis Date: Tue, 2 Jun 2020 08:37:58 +0200 Subject: [PATCH] Remove check if the output file exist Why did I even do that? --- Cargo.toml | 2 +- src/main.rs | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index dce9cbc..ff11de8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "snekdown" -version = "0.8.3" +version = "0.8.4" authors = ["trivernis "] edition = "2018" license-file = "LICENSE" diff --git a/src/main.rs b/src/main.rs index ad91428..170ae75 100644 --- a/src/main.rs +++ b/src/main.rs @@ -29,15 +29,6 @@ fn main() { ); return; } - if !opt.output.exists() { - println!( - "{} The output file {} could not be found{}", - Fg(Red), - opt.output.to_str().unwrap(), - style::Reset - ); - return; - } let start = Instant::now(); let mut parser = Parser::new_from_file(opt.input.to_str().unwrap().to_string()).unwrap(); let document = parser.parse();