diff options
| author | WriterV2 <primary-v2@protonmail.com> | 2023-06-03 15:05:57 +0200 |
|---|---|---|
| committer | WriterV2 <primary-v2@protonmail.com> | 2023-06-03 15:05:57 +0200 |
| commit | c8393e29b93a0d36b35134cfa12b9e4cbd41a62a (patch) | |
| tree | ab172809f862b9c18c4c16be6fea8e2b2d7897a6 /src/main.rs | |
| parent | 3d1e4859f6a09208966407cefaae5ba6803ddc26 (diff) | |
Refactor standard library paths to mod tops + Add missing json extension to file path
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index e2aab81..8fbb920 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,5 @@ +use std::fs::write; + use anyhow::{Context, Ok, Result}; use tera::Tera; @@ -14,7 +16,7 @@ fn main() -> Result<()> { let output = tera .render("index.html", &tera::Context::new()) .context("Failed to render index.html")?; - std::fs::write("docs/index.html", output).context("Failed to write index.html")?; + write("docs/index.html", output).context("Failed to write index.html")?; // render pages for stories Stories::new_from_file("stories")? |
