Skip to content

Commit

Permalink
Add closing delimiter that was missing in rust generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
Murali committed Nov 14, 2024
1 parent 31a03e7 commit 121bc98
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ impl {{ struct.name }} {
let start = flatdata_read_bytes!({{ field.type.name }}, self.data.as_ptr(), {{ field.offset }}, {{ field.type.width }});
let end = flatdata_read_bytes!({{ field.type.name }}, self.data.as_ptr(), {{ field.offset }} + {{ struct.size_in_bytes }} * 8, {{ field.type.width }});
{% if field.invalid_value %}
let check = |x| {% if field.invalid_value %}Some(x).filter(|&x| x != {{ fully_qualified_name(struct, field.invalid_value.node) }}{% else %}x{% endif %};
let check = |x| {% if field.invalid_value %}Some(x).filter(|&x| x != {{ fully_qualified_name(struct, field.invalid_value.node) }}){% else %}x{% endif %};
check(start)..check(end)
{% else %}
start..end
Expand Down

0 comments on commit 121bc98

Please sign in to comment.