refactor(tvix/serde): allow dead_code in struct

This is an example, which uses the debug trait to print all field
values.

Silence the compiler warning about unused fields.

Change-Id: I5f1216c77819003302e83ba1af1ff13c924f3b38
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7971
Reviewed-by: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
Autosubmit: flokli <flokli@flokli.de>
This commit is contained in:
Florian Klink 2023-01-31 15:13:11 +01:00 committed by clbot
parent a7e20bbef3
commit 5f62cd1ad5

View file

@ -15,6 +15,7 @@ enum Flavour {
Eww, Eww,
} }
#[allow(dead_code)]
#[derive(Debug, Deserialize)] #[derive(Debug, Deserialize)]
struct Data { struct Data {
name: String, name: String,