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:
parent
a7e20bbef3
commit
5f62cd1ad5
1 changed files with 1 additions and 0 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue