1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-21 23:04:45 -05:00

perf(cli): avoid clap::App::clone (#15951)

This commit is contained in:
Divy Srivastava 2022-09-19 17:07:49 +05:30 committed by GitHub
parent b1b418b81a
commit e2f3801221
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();