project-chip / rs-matter

Rust implementation of the Matter protocol. Status: Experimental
Apache License 2.0
310 stars 43 forks source link

Update code structuring for parsing syn derive inputs #125

Closed andy31415 closed 7 months ago

andy31415 commented 7 months ago

I am looking to move to syn2 and started re-structuring code (very deep nesting). While doing this, I found that the "unordered" branch was not correct: it was checking for a "NameValue" pair, however because unordered shows as a keyword it was not a pair at all. I fixed that bug and am proposing this PR for now for the fix.

I expect a followup that moves the entire thing to syn2 (so I can match the syn requirements for macros-impl and then we can move these things to macros-impl and have unit tests.

Testing