From 5f62cd1ad5a1217ea6b47ec826908d0b298925a9 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Tue, 31 Jan 2023 15:13:11 +0100 Subject: [PATCH] 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 Tested-by: BuildkiteCI Autosubmit: flokli --- tvix/serde/examples/cfg-demo.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tvix/serde/examples/cfg-demo.rs b/tvix/serde/examples/cfg-demo.rs index 8d31c9fb0..5774a81f7 100644 --- a/tvix/serde/examples/cfg-demo.rs +++ b/tvix/serde/examples/cfg-demo.rs @@ -15,6 +15,7 @@ enum Flavour { Eww, } +#[allow(dead_code)] #[derive(Debug, Deserialize)] struct Data { name: String,