Fix rustc 1.32.0 build
This commit is contained in:
parent
4c4fb1cf36
commit
9579d6a94c
1 changed files with 9 additions and 7 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue