Skip to content

Commit

Permalink
Merge pull request #2273 from klensy/useless-clone
Browse files Browse the repository at this point in the history
remove useless string clone
  • Loading branch information
ehuss authored Dec 16, 2023
2 parents c1d622e + 88be4ac commit 090eba0
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 090eba0

Please sign in to comment.