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:
parent
de1b37b0f8
commit
b0035e905c
|
@ -2,6 +2,7 @@
|
||||||
//! TOML into a Rust `struct`
|
//! TOML into a Rust `struct`
|
||||||
|
|
||||||
#![deny(warnings)]
|
#![deny(warnings)]
|
||||||
|
#![allow(dead_code)]
|
||||||
|
|
||||||
use serde_derive::Deserialize;
|
use serde_derive::Deserialize;
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
//! TOML into a Rust `struct`, with enums.
|
//! TOML into a Rust `struct`, with enums.
|
||||||
|
|
||||||
#![deny(warnings)]
|
#![deny(warnings)]
|
||||||
|
#![allow(dead_code)]
|
||||||
|
|
||||||
use serde_derive::Deserialize;
|
use serde_derive::Deserialize;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue