aboutsummaryrefslogtreecommitdiff
path: root/src/file_handler/file_strategies/file.rs
diff options
context:
space:
mode:
authorRuben Beltran del Rio <git@r.bdr.sh>2025-01-04 02:20:55 +0100
committerRuben Beltran del Rio <git@r.bdr.sh>2025-01-04 02:20:55 +0100
commit8766e4412b95cfa0288683748cc20aba81a64d08 (patch)
treeb068bbd32915b2c0ca846465edfd6cb9bf718d6c /src/file_handler/file_strategies/file.rs
parentb03284133baa6339fe4adf48e4a6499ef3ac287b (diff)
Address pedantic issues
Diffstat (limited to 'src/file_handler/file_strategies/file.rs')
-rw-r--r--src/file_handler/file_strategies/file.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/file_handler/file_strategies/file.rs b/src/file_handler/file_strategies/file.rs
index c3c3016..e5573a2 100644
--- a/src/file_handler/file_strategies/file.rs
+++ b/src/file_handler/file_strategies/file.rs
@@ -3,10 +3,10 @@ pub struct Strategy {}
use std::fs::{copy, create_dir_all};
use std::path::Path;
-use crate::file_handler::{File, FileHandlerStrategy, FileType};
+use crate::file_handler::{File, FileType, Strategy as FileHandlerStrategy};
impl Strategy {
- fn handle(&self, source: &Path, destination: &Path, file: &File) {
+ fn handle(source: &Path, destination: &Path, file: &File) {
let relative_path = file.path.strip_prefix(source).unwrap();
let complete_destination = destination.join(relative_path);
let destination_parent = complete_destination.parent().unwrap();
@@ -29,11 +29,11 @@ impl FileHandlerStrategy for Strategy {
}
fn handle_html(&self, source: &Path, destination: &Path, file: &File, _l: &str) {
- self.handle(source, destination, file)
+ Strategy::handle(source, destination, file);
}
fn handle_gemini(&self, source: &Path, destination: &Path, file: &File) {
- self.handle(source, destination, file)
+ Strategy::handle(source, destination, file);
}
}