X-Git-Url: https://git.r.bdr.sh/rbdr/page/blobdiff_plain/36a5c232b1f5d86bf97e29af987862732556ee07..3a7229d55bb1091a2bdd5d7fcd87f1c82d0a734a:/src/file_handler/file_strategies/file.rs diff --git a/src/file_handler/file_strategies/file.rs b/src/file_handler/file_strategies/file.rs index e5573a2..363f712 100644 --- a/src/file_handler/file_strategies/file.rs +++ b/src/file_handler/file_strategies/file.rs @@ -90,14 +90,13 @@ mod tests { create_dir_all(&source_dir).expect("Could not create source test directory"); create_dir_all(&output_dir).expect("Could not create output test directory"); create_test_file(&source_dir.join("image.png"), "A fish playing the banjo"); - let strategy = Strategy {}; let file = File { path: source_dir.join("image.png"), file_type: FileType::File, }; - strategy.handle(&source_dir, &output_dir, &file); + Strategy::handle(&source_dir, &output_dir, &file); let copied_path = &output_dir.join("image.png"); assert!(copied_path.exists()); @@ -120,14 +119,13 @@ mod tests { &source_dir.join("nested/style.css"), "* { margin: 0; padding: 0 }", ); - let strategy = Strategy {}; let file = File { path: source_dir.join("nested/style.css"), file_type: FileType::File, }; - strategy.handle(&source_dir, &output_dir, &file); + Strategy::handle(&source_dir, &output_dir, &file); let copied_path = output_dir.join("nested/style.css"); assert!(copied_path.exists());