mirror of
https://github.com/rust-lang/mdBook
synced 2024-12-12 13:52:36 +00:00
remove useless string clone
This commit is contained in:
parent
c1d622e56e
commit
88be4ac417
1 changed files with 1 additions and 2 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue