Skip to content
This repository has been archived by the owner on Sep 24, 2022. It is now read-only.

Commit

Permalink
examples: Allow dead code (#450)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
HarveyHunt committed Nov 9, 2021
1 parent 83d787c commit 499e8c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/decode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
//! TOML into a Rust `struct`

#![deny(warnings)]
#![allow(dead_code)]

use serde_derive::Deserialize;

Expand Down
1 change: 1 addition & 0 deletions examples/enum_external.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
//! TOML into a Rust `struct`, with enums.

#![deny(warnings)]
#![allow(dead_code)]

use serde_derive::Deserialize;

Expand Down

0 comments on commit 499e8c4

Please sign in to comment.