Skip to content

Commit

Permalink
Require foreign type specs to have leading colons
Browse files Browse the repository at this point in the history
  • Loading branch information
bickfordb committed Jan 17, 2025
1 parent 9400d6f commit 8cbd6aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prost-derive/src/field/scalar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ impl Ty {
Meta::Path(ref name) if name.is_ident("bool") => Ty::Bool,
Meta::Path(ref name) if name.is_ident("string") => Ty::String,
Meta::Path(ref name) if name.is_ident("bytes") => Ty::Bytes(BytesTy::Vec),
Meta::Path(ref name) => Ty::Foreign(name.clone()),
Meta::Path(ref name) if name.leading_colon.is_some() => Ty::Foreign(name.clone()),
Meta::NameValue(MetaNameValue {
ref path,
value:
Expand Down

0 comments on commit 8cbd6aa

Please sign in to comment.