examples: Allow dead code (#450)

The examples deny warnings, however a couple of examples deserialise TOML into
structs. The fields of these structs are never read, which breaks cargo test
in nightly mode.

Allow dead code to fix the CI build.
This commit is contained in:
Harvey Hunt 2021-11-09 19:28:06 +00:00 committed by GitHub
parent de1b37b0f8
commit b0035e905c
2 changed files with 2 additions and 0 deletions

View file

@ -2,6 +2,7 @@
//! TOML into a Rust `struct`
#![deny(warnings)]
#![allow(dead_code)]
use serde_derive::Deserialize;

View file

@ -2,6 +2,7 @@
//! TOML into a Rust `struct`, with enums.
#![deny(warnings)]
#![allow(dead_code)]
use serde_derive::Deserialize;