Skip to content

Commit

Permalink
Allow dead_code in tests and examples
Browse files Browse the repository at this point in the history
  • Loading branch information
TedDriggs committed Feb 24, 2022
1 parent 249b695 commit fb90843
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions derive_builder/examples/channel.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(dead_code)]

#[macro_use]
extern crate derive_builder;

Expand Down
1 change: 1 addition & 0 deletions derive_builder/examples/custom_error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//! This relies on how the generated build function is constructed; the validator
//! is invoked in conjunction with the `?` operator, so anything that converts to
//! the generated `FooBuilderError` type is valid.
#![allow(dead_code)]

#[macro_use]
extern crate derive_builder;
Expand Down
1 change: 1 addition & 0 deletions derive_builder/examples/custom_error_generic.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//! This example shows combining generics with custom errors and validation.
//!
//! Note the use of the type parameter in the `#[builder(...)]` attribute.
#![allow(dead_code)]

#[macro_use]
extern crate derive_builder;
Expand Down
1 change: 1 addition & 0 deletions derive_builder/examples/readme_example.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// NOTE: generate fully expanded version with `cargo expand`.
//
// cargo expand --example readme_example
#![allow(dead_code)]

#[macro_use]
extern crate derive_builder;
Expand Down
2 changes: 2 additions & 0 deletions derive_builder/tests/derive_trait.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(dead_code)]

#[macro_use]
extern crate derive_builder;

Expand Down

0 comments on commit fb90843

Please sign in to comment.