Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 450a22f

Browse files
committed
fix error test
1 parent 630f31c commit 450a22f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/matches/match_like_matches.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ fn is_some(path_kind: PatKind<'_>) -> bool {
185185
match path_kind {
186186
PatKind::TupleStruct(QPath::Resolved(_, path), patterns, _) if is_wild(&patterns[0]) => {
187187
let name = path.segments[0].ident;
188-
if name.as_str() == "Some" {
188+
if name.name == rustc_span::sym::Some {
189189
return true;
190190
}
191191
false

0 commit comments

Comments
 (0)