mirror of
https://github.com/denoland/deno.git
synced 2025-03-09 21:57:40 -04:00
perf(cli): avoid clap::App::clone
(#15951)
This commit is contained in:
parent
af0d2eeb7b
commit
1e8f4a1c40
1 changed files with 2 additions and 2 deletions
|
@ -527,8 +527,8 @@ To evaluate code in the shell:
|
|||
/// Main entry point for parsing deno's command line flags.
|
||||
pub fn flags_from_vec(args: Vec<String>) -> clap::Result<Flags> {
|
||||
let version = crate::version::deno();
|
||||
let app = clap_root(&version);
|
||||
let matches = app.clone().try_get_matches_from(&args)?;
|
||||
let mut app = clap_root(&version);
|
||||
let matches = app.try_get_matches_from_mut(&args)?;
|
||||
|
||||
let mut flags = Flags::default();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue