Skip to content

Commit

Permalink
fix: use after move
Browse files Browse the repository at this point in the history
  • Loading branch information
fgardt committed Aug 12, 2024
1 parent b14315e commit a330654
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand Down

0 comments on commit a330654

Please sign in to comment.