mirror of
https://github.com/clap-rs/clap
synced 2025-03-04 23:37:32 +00:00
perf: Avoid clone
This commit is contained in:
parent
d1d9f75d53
commit
9e625c0c55
1 changed files with 2 additions and 2 deletions
|
@ -476,8 +476,8 @@ impl<'help, 'app> Parser<'help, 'app> {
|
|||
}
|
||||
|
||||
matcher.subcommand(SubCommand {
|
||||
name: sc_name.clone(),
|
||||
id: sc_name.into(),
|
||||
id: Id::from(&*sc_name),
|
||||
name: sc_name,
|
||||
matches: sc_m.into_inner(),
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue