about summary refs log tree commit diff
path: root/tvix/serde/examples
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-01-31T14·13+0100
committerclbot <clbot@tvl.fyi>2023-01-31T15·35+0000
commit5f62cd1ad5a1217ea6b47ec826908d0b298925a9 (patch)
tree3e1cfb3385089e66bc8ea5955dde22a737ddc412 /tvix/serde/examples
parenta7e20bbef356d2d3191bd1ac801d8d183ebf527a (diff)
refactor(tvix/serde): allow dead_code in struct r/5797
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>
Diffstat (limited to 'tvix/serde/examples')
-rw-r--r--tvix/serde/examples/cfg-demo.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/tvix/serde/examples/cfg-demo.rs b/tvix/serde/examples/cfg-demo.rs
index 8d31c9fb0450..5774a81f7752 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,