mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 21:23:56 +00:00
fix error test
This commit is contained in:
parent
630f31ce5e
commit
450a22f2dc
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue