Skip to content

Commit

Permalink
Use new format strings syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
lukechu10 committed Mar 6, 2022
1 parent 05f7c2a commit b59ecbb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions docs/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,7 @@ fn parse(path: &Path) -> Result<MarkdownPage, Box<dyn Error>> {
l.children.push(tmp);
}
Some(Event::Html(CowStr::from(format!(
"<{level} id=\"{anchor}\">{name}</{level}>",
level = level,
anchor = anchor,
name = name
"<{level} id=\"{anchor}\">{name}</{level}>"
))))
}
}
Expand Down

0 comments on commit b59ecbb

Please sign in to comment.