From b0035e905c7e8d9e90c6989c953abcccb37290f6 Mon Sep 17 00:00:00 2001 From: Harvey Hunt Date: Tue, 9 Nov 2021 19:28:06 +0000 Subject: [PATCH] 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. --- examples/decode.rs | 1 + examples/enum_external.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/examples/decode.rs b/examples/decode.rs index b5d6a99..256069b 100644 --- a/examples/decode.rs +++ b/examples/decode.rs @@ -2,6 +2,7 @@ //! TOML into a Rust `struct` #![deny(warnings)] +#![allow(dead_code)] use serde_derive::Deserialize; diff --git a/examples/enum_external.rs b/examples/enum_external.rs index a7dd84a..7de061f 100644 --- a/examples/enum_external.rs +++ b/examples/enum_external.rs @@ -2,6 +2,7 @@ //! TOML into a Rust `struct`, with enums. #![deny(warnings)] +#![allow(dead_code)] use serde_derive::Deserialize;