lang/syn: Remove features not on stable rust

This commit is contained in:
Armani Ferrante 2021-02-16 15:03:47 +08:00
parent 08f5a0e243
commit 53f0e4673c
No known key found for this signature in database
GPG Key ID: D597A80BCF8E12B7
1 changed files with 4 additions and 4 deletions

View File

@ -66,10 +66,10 @@ fn parse_field(f: &syn::Field, anchor: Option<&syn::Attribute>) -> AccountField
} }
fn is_field_primitive(f: &syn::Field) -> bool { fn is_field_primitive(f: &syn::Field) -> bool {
matches!( match ident_string(f).as_str() {
ident_string(f).as_str(), "ProgramState" | "ProgramAccount" | "CpiAccount" | "Sysvar" | "AccountInfo" => true,
"ProgramState" | "ProgramAccount" | "CpiAccount" | "Sysvar" | "AccountInfo" _ => false,
) }
} }
fn parse_ty(f: &syn::Field) -> Ty { fn parse_ty(f: &syn::Field) -> Ty {