From 505baa602869ee58d0d3f2173a12bdd52f1ff55b Mon Sep 17 00:00:00 2001 From: Sebastien Rousseau Date: Fri, 8 Sep 2023 09:10:54 +0100 Subject: [PATCH] feat(shokunin): decoupling the write utility fn --- src/compiler.rs | 3 +-- src/lib.rs | 3 --- src/utilities/mod.rs | 5 ++++- src/{ => utilities}/write.rs | 0 4 files changed, 5 insertions(+), 6 deletions(-) rename src/{ => utilities}/write.rs (100%) diff --git a/src/compiler.rs b/src/compiler.rs index 1b47be23..d3fb65c9 100644 --- a/src/compiler.rs +++ b/src/compiler.rs @@ -19,8 +19,7 @@ use crate::{ }, navigation::generate_navigation, template::{render_page, PageOptions}, - utilities::file::add, - write::write_files, + utilities::{file::add, write::write_files}, }; use std::{error::Error, fs, path::Path, collections::HashMap}; diff --git a/src/lib.rs b/src/lib.rs index c3d17bb7..1ce1a821 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -188,9 +188,6 @@ pub mod process; /// template. pub mod template; -/// The `write` module contains functions for writing files. -pub mod write; - /// The `utilities` module contains utility functions. pub mod utilities; diff --git a/src/utilities/mod.rs b/src/utilities/mod.rs index edefad32..4fe6bb56 100644 --- a/src/utilities/mod.rs +++ b/src/utilities/mod.rs @@ -18,4 +18,7 @@ pub mod minification; /// The `serve` module contains functions for the development server. - pub mod serve; \ No newline at end of file + pub mod serve; + + /// The `write` module contains functions for writing files. + pub mod write; \ No newline at end of file diff --git a/src/write.rs b/src/utilities/write.rs similarity index 100% rename from src/write.rs rename to src/utilities/write.rs