mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -05:00
perf(cli): avoid clap::App::clone
(#15951)
This commit is contained in:
parent
b1b418b81a
commit
e2f3801221
1 changed files with 2 additions and 2 deletions
|
@ -528,8 +528,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…
Reference in a new issue