summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorWriterV2 <primary-v2@protonmail.com>2023-06-03 15:05:57 +0200
committerWriterV2 <primary-v2@protonmail.com>2023-06-03 15:05:57 +0200
commitc8393e29b93a0d36b35134cfa12b9e4cbd41a62a (patch)
treeab172809f862b9c18c4c16be6fea8e2b2d7897a6 /src/main.rs
parent3d1e4859f6a09208966407cefaae5ba6803ddc26 (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.rs4
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")?