From 8910ef9d544a1a45a130a9547455abf5fa338f78 Mon Sep 17 00:00:00 2001 From: Filipe Rodrigues Date: Fri, 1 May 2020 07:05:28 +0100 Subject: [PATCH] Removed getting current working directory. --- src/main.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main.rs b/src/main.rs index 3253d36..6a4e664 100644 --- a/src/main.rs +++ b/src/main.rs @@ -62,9 +62,6 @@ fn main() { // Get all data from cli let CliData { input_filename, output_dir } = CliData::new(); - let cur_working_dir = std::env::current_dir().expect("No cwd"); - log::info!("cwd: {}", cur_working_dir.display()); - // Open the game file let input_file = std::fs::File::open(&input_filename) .panic_err_msg("Unable to open input file"); @@ -73,9 +70,10 @@ fn main() { // Get the cards table let cards_table = CardTable::deserialize(&mut game_file) - .panic_err_msg("Unable to create cards table"); + .panic_err_msg("Unable to deserialize cards table from game file"); let cards_table_yaml = serde_yaml::to_string(&cards_table) - .panic_err_msg("Unable to serialize cards table"); + .panic_err_msg("Unable to serialize cards table to yaml"); + log::info!("Extracted {} cards", cards_table.card_count()); // And output everything to the files