From a33065477f9f754251659d0ef02bd67196836606 Mon Sep 17 00:00:00 2001 From: Florian Date: Mon, 12 Aug 2024 07:07:44 +0200 Subject: [PATCH] fix: use after move --- src/windows.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/windows.rs b/src/windows.rs index e97b95a..a5e56a8 100644 --- a/src/windows.rs +++ b/src/windows.rs @@ -116,7 +116,7 @@ pub fn run() -> Result<()> { println!("Factorio path: {factorio_path:?}"); let factorio_path = PCSTR(factorio_path.as_ptr().cast()); - let dll_path = common::extract_rivets_lib(read_path, write_path)?; + let dll_path = common::extract_rivets_lib(&read_path, &write_path)?; let factorio_process_information: PROCESS_INFORMATION = start_factorio(factorio_path)?; println!("Factorio process started.");