X-Git-Url: https://git.r.bdr.sh/rbdr/page/blobdiff_plain/8766e4412b95cfa0288683748cc20aba81a64d08..4d946aebe3f70ad18e235d68474b6d489757c927:/src/file_handler/file_strategies/file.rs?ds=sidebyside 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());