Skip to content

Commit

Permalink
🔧 Fixed string arguments borrow
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve-xmh committed Mar 3, 2024
1 parent 47dfdc0 commit 2e07568
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/launcher/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ fn main() {
let lib_path_str = lib_path.to_str().unwrap();

let exe = std::env::args().nth(1).expect("no executable provided");
let args = std::env::args().skip(2).collect::<Vec<String>>();
let args = std::env::args().skip(2).collect::<Vec<_>>();
let args = args.iter().map(|s| s.as_str()).collect::<Vec<_>>();

println!("[*] Executable: {}", exe);
println!("[*] Args: {:?}", args);
Expand Down

0 comments on commit 2e07568

Please sign in to comment.