X-Git-Url: https://git.r.bdr.sh/rbdr/blog/blobdiff_plain/6352ebb0eb4cb83240c6d4998e0ef1375b041191..40a5de55c35d6481fd538f4c5205e47c201e3289:/src/generator/static_files.rs diff --git a/src/generator/static_files.rs b/src/generator/static_files.rs index 401eacf..b4ec9fd 100644 --- a/src/generator/static_files.rs +++ b/src/generator/static_files.rs @@ -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(()) }