fix error test

This commit is contained in:
disco07 2023-05-07 02:56:46 +02:00
parent 630f31ce5e
commit 450a22f2dc

View File

@ -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