mirror of
https://github.com/lune-org/lune.git
synced 2025-05-04 10:43:57 +01:00
fix: avoid collecting to unneeded VecDequeue
This commit is contained in:
parent
75152bd384
commit
53b53a27fd
1 changed files with 3 additions and 9 deletions
|
@ -1,10 +1,4 @@
|
||||||
use std::{
|
use std::{env, ops::ControlFlow, process::ExitCode, sync::Mutex};
|
||||||
collections::VecDeque,
|
|
||||||
env,
|
|
||||||
ops::ControlFlow,
|
|
||||||
process::{self, ExitCode},
|
|
||||||
sync::Mutex,
|
|
||||||
};
|
|
||||||
|
|
||||||
use lune::Lune;
|
use lune::Lune;
|
||||||
|
|
||||||
|
@ -94,8 +88,8 @@ pub async fn run_standalone(signature: Vec<u8>, bin: Vec<u8>) -> Result<ExitCode
|
||||||
// If we were able to retrieve the required metadata, we load
|
// If we were able to retrieve the required metadata, we load
|
||||||
// and execute the bytecode
|
// and execute the bytecode
|
||||||
|
|
||||||
let mut args = env::args().collect::<VecDeque<String>>();
|
// Skip the first argument which is the path to current executable
|
||||||
args.pop_front();
|
let args = env::args().skip(1).collect::<Vec<_>>();
|
||||||
|
|
||||||
let result = Lune::new()
|
let result = Lune::new()
|
||||||
.with_args(args)
|
.with_args(args)
|
||||||
|
|
Loading…
Add table
Reference in a new issue