Skip to content

Commit

Permalink
remove useless string clone
Browse files Browse the repository at this point in the history
  • Loading branch information
klensy committed Dec 16, 2023
1 parent c1d622e commit 88be4ac
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/renderer/html_handlebars/hbs_renderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 88be4ac

Please sign in to comment.