Closed ltratt closed 8 months ago
I think that field being unread looks real, but is perhaps being suppressed by reads from the serde feature?
Ah, yes, maybe! Shall we try removing it and see if it goes through CI?
It does actually look like it gets used in one test, but clippy can't see that because of conditional compilation of the test module. https://github.com/softdevteam/grmtools/blob/b5abf0899535d5a2814e2f05e113230783dad923/lrtable/src/lib/statetable.rs#L645
It seems reasonable to want to keep testing that, I'm not sure how I feel about adding the field conditionally during testing, any thoughts?
+ #[cfg(test)]
final_state: StIdx<StorageT>,
+ #[cfg(test)]
final_state: final_state.unwrap(),
I'm very fine with that sort of conditional testing if you want to raise a PR for it!
Been a bit enamored with the
cargo hack
tool lately, so ran this throughcargo hack --feature-powerset
, which came back relatively clean.It did produce one warning with
cargo clippy --no-default-features -p lrtable
I think that field being unread looks real, but is perhaps being suppressed by reads from the
serde
feature?