aboutsummaryrefslogtreecommitdiff
path: root/src/generator/static_files.rs
diff options
context:
space:
mode:
authorRuben Beltran del Rio <git@r.bdr.sh>2025-01-05 00:38:55 +0100
committerRuben Beltran del Rio <git@r.bdr.sh>2025-01-05 00:38:55 +0100
commitd7fef30ac3f539975ef9edbba8e0af4a4e9ff3de (patch)
tree1e71dd131261a8f7a13d86d4dddd7d421e6a09f4 /src/generator/static_files.rs
parentd26464d12e41e8d53fca8d0e5f9cc6ac03e48f9a (diff)
Commit batch of lints to allow autofix
Diffstat (limited to 'src/generator/static_files.rs')
-rw-r--r--src/generator/static_files.rs13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/generator/static_files.rs b/src/generator/static_files.rs
index 401eacf..8c55de3 100644
--- a/src/generator/static_files.rs
+++ b/src/generator/static_files.rs
@@ -1,11 +1,16 @@
-use std::io::Result;
-use std::path::PathBuf;
use crate::template::TemplateContext;
use crate::utils::recursively_copy;
+use std::io::Result;
+use std::path::PathBuf;
-pub fn generate(source: &PathBuf, _: &PathBuf, target: &PathBuf, _: &TemplateContext) -> Result<()> {
+pub fn generate(
+ source: &PathBuf,
+ _: &PathBuf,
+ target: &PathBuf,
+ _: &TemplateContext,
+) -> Result<()> {
if source.exists() {
- return recursively_copy(source, target)
+ return recursively_copy(source, target);
}
Ok(())
}