Skip to content

Commit 090eba0

Browse files
authored
Merge pull request #2273 from klensy/useless-clone
remove useless string clone
2 parents c1d622e + 88be4ac commit 090eba0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/renderer/html_handlebars/hbs_renderer.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ impl HtmlHandlebars {
5454
.insert("git_repository_edit_url".to_owned(), json!(edit_url));
5555
}
5656

57-
let content = ch.content.clone();
58-
let content = utils::render_markdown(&content, ctx.html_config.curly_quotes);
57+
let content = utils::render_markdown(&ch.content, ctx.html_config.curly_quotes);
5958

6059
let fixed_content =
6160
utils::render_markdown_with_path(&ch.content, ctx.html_config.curly_quotes, Some(path));

0 commit comments

Comments
 (0)