Skip to content

Commit

Permalink
fix: syn MetaNameValue members changed
Browse files Browse the repository at this point in the history
  • Loading branch information
poliorcetics committed Sep 18, 2023
1 parent 8c4096b commit d8f4c27
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion prost-derive/src/field/scalar.rs
Expand Up @@ -494,7 +494,11 @@ impl Ty {
}) if path.is_ident("string") => Ty::String(StringTy::try_from_str(&l.value())?),
Meta::NameValue(MetaNameValue {
ref path,
lit: Lit::Str(ref l),
value:
syn::Expr::Lit(ExprLit {
lit: Lit::Str(ref l),
..
}),
..
}) if path.is_ident("bytes") => Ty::Bytes(BytesTy::try_from_str(&l.value())?),
Meta::NameValue(MetaNameValue {
Expand Down

0 comments on commit d8f4c27

Please sign in to comment.