From 9562be88ba55e1d13522d4bf5e405185dd35849a Mon Sep 17 00:00:00 2001 From: ToKiNoBug Date: Mon, 11 Mar 2024 11:47:01 +0800 Subject: [PATCH] try to fix test --- src/bin/deploy-dll.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/deploy-dll.rs b/src/bin/deploy-dll.rs index 1d517e2..e3a0f44 100644 --- a/src/bin/deploy-dll.rs +++ b/src/bin/deploy-dll.rs @@ -398,7 +398,7 @@ fn deploy_dll(target_binary: &str, target_dir: &str, objdump_file: &str, binary_ if args.verbose { println!("Copying \"{location}\" to \"{target_dir}\""); } - std::fs::copy(location, format!("{target_dir}/{dep}")).expect("Failed to copy dll"); + std::fs::copy(location, &expected_filename).expect("Failed to copy dll"); } else if args.allow_missing { println!("Failed to find dll \"{dep}\", required by \"{target_binary}\""); continue; @@ -408,7 +408,7 @@ fn deploy_dll(target_binary: &str, target_dir: &str, objdump_file: &str, binary_ } - deploy_dll(dep, target_dir, objdump_file, binary_format, args); + deploy_dll(&expected_filename, target_dir, objdump_file, binary_format, args); } }