This conditionally includes a field into struct StateTable. Previously clippy with --no-default-features -p lrtable would produce a warning about final_state never being read. This was presumably being suppressed by serde derive macros. Since this field was only used in the test cfg.
It seemed better to make it conditional rather than #[allow(dead_code)].
This conditionally includes a field into
struct StateTable
. Previouslyclippy with --no-default-features -p lrtable
would produce a warning aboutfinal_state
never being read. This was presumably being suppressed by serde derive macros. Since this field was only used in the test cfg.It seemed better to make it conditional rather than
#[allow(dead_code)]
.