mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 06:42:33 +00:00
fix: clippy lint warning
Not necessary to borrow the to_string for comparison
This commit is contained in:
parent
6ddf940ac3
commit
0ddd58c935
1 changed files with 1 additions and 1 deletions
|
@ -2026,7 +2026,7 @@ impl<'b> App<'b> {
|
|||
// Conflicts between flag subcommands and long args
|
||||
if let Some(s) = sc.short_flag {
|
||||
if let Some((first, second)) =
|
||||
self.two_short_flags_of(|f| f.value() == &s.to_string())
|
||||
self.two_short_flags_of(|f| f.value() == s.to_string())
|
||||
{
|
||||
// Prevent conflicts with itself
|
||||
if first.id() != second.id() {
|
||||
|
|
Loading…
Reference in a new issue