Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(lrtable) Make the final_state field conditional on cfg(test) #442

Merged
merged 1 commit into from
Mar 6, 2024

Conversation

ratmice
Copy link
Collaborator

@ratmice ratmice commented Mar 6, 2024

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`.
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)]`.
@ltratt
Copy link
Member

ltratt commented Mar 6, 2024

Thanks!

@ltratt ltratt added this pull request to the merge queue Mar 6, 2024
Merged via the queue into softdevteam:master with commit a7e700b Mar 6, 2024
2 checks passed
@ratmice ratmice deleted the conditional_final_state branch March 6, 2024 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants