Fix rustc 1.32.0 build

This commit is contained in:
Graham Esau 2019-12-08 22:34:48 +00:00
parent 4c4fb1cf36
commit 9579d6a94c

View file

@ -411,13 +411,15 @@ fn get_with_from_attr(attr: &syn::Attribute) -> Option<syn::LitStr> {
_ => return None, _ => return None,
}; };
for nm in nested_metas { for nm in nested_metas {
match nm { if let NestedMeta::Meta(Meta::NameValue(MetaNameValue {
NestedMeta::Meta(Meta::NameValue(MetaNameValue { path,
path, lit: Lit::Str(with),
lit: Lit::Str(with), ..
.. })) = nm
})) if path.is_ident("with") => return Some(with), {
_ => {} if path.is_ident("with") {
return Some(with);
}
} }
} }
None None