From 9422bb52975f762244ca3d3d415c726ad5fcce1c Mon Sep 17 00:00:00 2001 From: Junko Date: Mon, 27 Nov 2023 09:05:56 +0100 Subject: [PATCH] most likely fix --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index eaf44da..2ed850e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -301,10 +301,10 @@ fn get(config_path: String) -> Result<(), &'static str> { } if cfg!(target_os = "windows") { - Command::new("cmd").arg("/C").arg(format!("copy {}/{} {}", &config.pfp_module.pfp_folder, pfpnames, &config.pfp_module.pfp_output_path)).output().expect("PFP module error"); + Command::new("cmd").args(["/C", format!("copy {}/{} {}", &config.pfp_module.pfp_folder, pfpnames, &config.pfp_module.pfp_output_path).as_str()]).output().expect("PFP module error"); if config.disc_module.enabled { - let mut c = Command::new("cmd").arg("/C").arg(format!("{} {}", &config.disc_module.python_path, &config.disc_module.script_path)).spawn().expect("Discord module error"); + let mut c = Command::new("cmd").args(["/C", format!("{} {}", &config.disc_module.python_path, &config.disc_module.script_path).as_str()]).spawn().expect("Discord module error"); let _ = c.wait().expect("Error"); }