Skip to content

Commit

Permalink
Merge pull request #23 from blockscout/lok52/fix-map-entry-check
Browse files Browse the repository at this point in the history
Fix map entry check
  • Loading branch information
lok52 committed Mar 12, 2024
2 parents 0f67be4 + fa79219 commit 32188ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actix-prost-build/src/conversions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ impl ConversionsGenerator {

let field_desc = convert_field.map(|cf| &cf.field)?;
let map_type = match (field_desc.cardinality(), field_desc.kind()) {
(Cardinality::Repeated, Kind::Message(m)) => Some(m),
(Cardinality::Repeated, Kind::Message(m)) if m.is_map_entry() => Some(m),
_ => None,
}?;
// Map keys can only be of scalar types, so we search for nested messages only in values
Expand Down

0 comments on commit 32188ff

Please sign in to comment.