From 5da795954563a401b29bf0ac9dc4e5fbf9d5678e Mon Sep 17 00:00:00 2001 From: sgoudham Date: Mon, 9 May 2022 02:39:13 +0100 Subject: [PATCH] refactor: Remove 'Default' from #derive[] & Log out error in sad path test --- src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 62a970e..1284114 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -13,7 +13,6 @@ mod utils; const MAX_LINK_NESTED_DEPTH: usize = 10; -#[derive(Default)] pub struct Template; impl Template { @@ -288,6 +287,8 @@ mod lib_tests { #[test] fn test_sad_path_invalid_file() { + env_logger::init_from_env(env_logger::Env::default().default_filter_or("info")); + let start_chapter_content = "{{#template footer.md}}"; let actual_chapter_content =