From 596a02f453f5cc02892f177e8cc8833bfbbd7e88 Mon Sep 17 00:00:00 2001 From: "Samuel E. Moelius III" Date: Thu, 7 Oct 2021 10:01:43 -0400 Subject: [PATCH] Incorporate 1f955158ddc2035a054fdd4d7cc3bd2297b5a7ba --- clippy_utils/src/higher.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clippy_utils/src/higher.rs b/clippy_utils/src/higher.rs index 2772b86b5914..86a438c75109 100644 --- a/clippy_utils/src/higher.rs +++ b/clippy_utils/src/higher.rs @@ -658,7 +658,7 @@ impl<'fmt, 'tcx> FormatArgsArg<'fmt, 'tcx> { if let ExprKind::Call(_, [_, format_field]) = self.arg.kind; if let ExprKind::Path(QPath::Resolved(_, path)) = format_field.kind; if let [.., t, _] = path.segments; - if t.ident.name.as_str() == "Display"; + if t.ident.name == sym::Display; then { true } else { false } } }