From 0356919c582dd577e6d6019b507781d842416e49 Mon Sep 17 00:00:00 2001 From: Laurent Querel Date: Tue, 4 Jun 2024 12:13:10 -0700 Subject: [PATCH] chore(forge): Remove unused Display implementation --- crates/weaver_codegen_test/build.rs | 4 ++-- crates/weaver_forge/src/lib.rs | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/crates/weaver_codegen_test/build.rs b/crates/weaver_codegen_test/build.rs index ae45a375..9f9dbf11 100644 --- a/crates/weaver_codegen_test/build.rs +++ b/crates/weaver_codegen_test/build.rs @@ -51,8 +51,8 @@ fn main() { let loader = FileSystemFileLoader::try_new(TEMPLATES_PATH.into(), TARGET) .unwrap_or_else(|e| process_error(&logger, e)); - let engine = - TemplateEngine::try_new(loader, Params::default()).unwrap_or_else(|e| process_error(&logger, e)); + let engine = TemplateEngine::try_new(loader, Params::default()) + .unwrap_or_else(|e| process_error(&logger, e)); let template_registry = ResolvedRegistry::try_from_resolved_registry( schema .registry(REGISTRY_ID) diff --git a/crates/weaver_forge/src/lib.rs b/crates/weaver_forge/src/lib.rs index 8cfde6a1..2970dfa3 100644 --- a/crates/weaver_forge/src/lib.rs +++ b/crates/weaver_forge/src/lib.rs @@ -69,14 +69,14 @@ impl TemplateObject { } } -impl Display for TemplateObject { - fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { - f.write_str(&format!( - "template file name: {}", - self.file_name.lock().expect("Lock poisoned") - )) - } -} +// impl Display for TemplateObject { +// fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { +// f.write_str(&format!( +// "template file name: {}", +// self.file_name.lock().expect("Lock poisoned") +// )) +// } +// } impl Object for TemplateObject { fn call_method(