fix enumval support by adding the enumval keyword to the list of attribute keywords for the tlv macros
applied some fixes for warnings from nightly rust (TryFrom seems included in the 2021 prelude and there were some redundant use clauses). This was because I had to debug some macro errors with -Z macro-backtrace and that works in nightly only
NOTE: struct derive of FromTLV is still broken because idl codegen uses a full path for rs_matter::tlv::Nullable and the FromTLV derive macro only expands the first path segment rs_matter and loses the Nullable part when calling tlv_not_found during parsing. I fixed that in a followup.
Changes
nightly
rust (TryFrom seems included in the 2021 prelude and there were some redundant use clauses). This was because I had to debug some macro errors with-Z macro-backtrace
and that works in nightly onlyNOTE: struct derive of
FromTLV
is still broken because idl codegen uses a full path forrs_matter::tlv::Nullable
and the FromTLV derive macro only expands the first path segmentrs_matter
and loses the Nullable part when callingtlv_not_found
during parsing. I fixed that in a followup.