]> git.r.bdr.sh - rbdr/blog/blobdiff - src/generator/static_files.rs
Add tests for the archivers
[rbdr/blog] / src / generator / static_files.rs
index 401eacfa07f067db99272a4ed708456b310e3fb3..b4ec9fdbae0dc2162d0267a509aa83a0cc514407 100644 (file)
@@ -1,11 +1,11 @@
-use std::io::Result;
-use std::path::PathBuf;
-use crate::template::TemplateContext;
+use crate::template::Context;
 use crate::utils::recursively_copy;
+use std::io::Result;
+use std::path::Path;
 
-pub fn generate(source: &PathBuf, _: &PathBuf, target: &PathBuf, _: &TemplateContext) -> Result<()> {
+pub fn generate(source: &Path, _: &Path, target: &Path, _: &Context) -> Result<()> {
     if source.exists() {
-        return recursively_copy(source, target)
+        return recursively_copy(source, target);
     }
     Ok(())
 }