From 0ddd58c9351bf19f5b8621510b5b4948647f96d1 Mon Sep 17 00:00:00 2001 From: NickHackman Date: Sat, 11 Jul 2020 15:21:53 -0400 Subject: [PATCH] fix: clippy lint warning Not necessary to borrow the to_string for comparison --- src/build/app/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/build/app/mod.rs b/src/build/app/mod.rs index fbbfa514..ac20caf3 100644 --- a/src/build/app/mod.rs +++ b/src/build/app/mod.rs @@ -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() {