From 450a22f2dc18949ba2db96570dc5270060fabd43 Mon Sep 17 00:00:00 2001 From: disco07 Date: Sun, 7 May 2023 02:56:46 +0200 Subject: [PATCH] fix error test --- clippy_lints/src/matches/match_like_matches.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clippy_lints/src/matches/match_like_matches.rs b/clippy_lints/src/matches/match_like_matches.rs index fe3b440ff58e..438d1437562d 100644 --- a/clippy_lints/src/matches/match_like_matches.rs +++ b/clippy_lints/src/matches/match_like_matches.rs @@ -185,7 +185,7 @@ fn is_some(path_kind: PatKind<'_>) -> bool { match path_kind { PatKind::TupleStruct(QPath::Resolved(_, path), patterns, _) if is_wild(&patterns[0]) => { let name = path.segments[0].ident; - if name.as_str() == "Some" { + if name.name == rustc_span::sym::Some { return true; } false