We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d801031 commit f707b25Copy full SHA for f707b25
mdbook-tera-backend/src/tera_renderer/renderer.rs
@@ -107,9 +107,7 @@ impl Renderer {
107
}
108
let file_content = std::fs::read_to_string(path)?;
109
let output = self.render_file_content(&file_content, path)?;
110
- let mut output_file = fs::File::create(path)?;
111
- output_file.write_all(output.as_bytes())?;
112
- Ok(())
+ fs::write(path, output)
113
114
115
/// Creates the rendering context to be passed to the templates.
0 commit comments