allow dead code of an enum parameter only used in a debug print

This commit is contained in:
Corwin 2024-01-13 10:31:33 +00:00
parent 3840c4ce80
commit 8e367ab6b6
No known key found for this signature in database

View file

@ -1074,6 +1074,9 @@ mod tests {
} }
#[derive(Debug)] #[derive(Debug)]
// allow dead code because field is unused apart from in a debug string,
// which is what we want to use it for.
#[allow(dead_code)]
enum CompleteSimulationResult { enum CompleteSimulationResult {
Success, Success,
ExplicitLoss, ExplicitLoss,