From 88be4ac4177bd8ff66023df018ae17254082331e Mon Sep 17 00:00:00 2001 From: klensy Date: Sat, 16 Dec 2023 13:29:24 +0300 Subject: [PATCH] remove useless string clone --- src/renderer/html_handlebars/hbs_renderer.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/renderer/html_handlebars/hbs_renderer.rs b/src/renderer/html_handlebars/hbs_renderer.rs index 69f9082d..c701729f 100644 --- a/src/renderer/html_handlebars/hbs_renderer.rs +++ b/src/renderer/html_handlebars/hbs_renderer.rs @@ -54,8 +54,7 @@ impl HtmlHandlebars { .insert("git_repository_edit_url".to_owned(), json!(edit_url)); } - let content = ch.content.clone(); - let content = utils::render_markdown(&content, ctx.html_config.curly_quotes); + let content = utils::render_markdown(&ch.content, ctx.html_config.curly_quotes); let fixed_content = utils::render_markdown_with_path(&ch.content, ctx.html_config.curly_quotes, Some(path));