Skip to content

Commit

Permalink
Temporary hack to make it build.
Browse files Browse the repository at this point in the history
  • Loading branch information
m-dahl authored and jiangeng-nimble committed Jun 25, 2023
1 parent 58bc2f0 commit f9675c0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions r2r_msg_gen/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,12 @@ impl StructDescription {
std::slice::from_raw_parts(members.members_, members.member_count_ as usize);
let constants = constants
.iter()
.filter(|(_, type_name)| {
// TODO: temporary hack to remove types like "&[u8; 13usize]", which cannot be
// parsed as Idents (breaks the below code.). Remove this once we rework the constant
// parsning.
!type_name.contains(";") // temporary hack
})
.map(|(const_name, type_name)| {
let const_name = const_name.trim();
let type_name = type_name.trim();
Expand Down

0 comments on commit f9675c0

Please sign in to comment.