Eliminate lazy_static (#1442)

This commit is contained in:
Cameron Steffen
2022-12-15 18:53:21 -06:00
committed by GitHub
parent c35b131971
commit 216df31543
46 changed files with 202 additions and 227 deletions

View File

@@ -165,7 +165,7 @@ fn main() -> Result {
for chapter in chapters {
let path = format!("{}/chapter_{}.md", src, chapter.number());
fs::write(&path, &chapter.markdown()?)?;
fs::write(path, chapter.markdown()?)?;
let indent = match chapter.level {
HeadingLevel::H1 => 0,
HeadingLevel::H2 => 1,