From b17907faf8d9693cef94a6048d802bd4ced9102f Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Sun, 5 Jan 2025 15:48:16 +0100 Subject: Deal with all lints --- src/generator/static_files.rs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'src/generator/static_files.rs') diff --git a/src/generator/static_files.rs b/src/generator/static_files.rs index 8c55de3..b4ec9fd 100644 --- a/src/generator/static_files.rs +++ b/src/generator/static_files.rs @@ -1,14 +1,9 @@ -use crate::template::TemplateContext; +use crate::template::Context; use crate::utils::recursively_copy; use std::io::Result; -use std::path::PathBuf; +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); } -- cgit