Skip to content

Commit

Permalink
chore(forge): Remove unused Display implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
lquerel committed Jun 4, 2024
1 parent 272a315 commit 0356919
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions crates/weaver_codegen_test/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
16 changes: 8 additions & 8 deletions crates/weaver_forge/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 0356919

Please sign in to comment.