Update to syn/quote 1.0

This commit is contained in:
David Tolnay
2019-07-31 21:09:14 -07:00
parent 8ad6ae71c6
commit 3ea85a28cf
7 changed files with 160 additions and 142 deletions
+1 -1
View File
@@ -407,7 +407,7 @@ fn member_message(member: &Member) -> String {
fn allow_transparent(field: &Field, derive: Derive) -> bool {
if let Type::Path(ref ty) = *field.ty {
if let Some(seg) = ty.path.segments.last() {
if seg.into_value().ident == "PhantomData" {
if seg.ident == "PhantomData" {
return false;
}
}