Skip to content

Commit

Permalink
Mark default_builder_field with cfg(test)
Browse files Browse the repository at this point in the history
  • Loading branch information
ijackson committed Apr 13, 2022
1 parent 34a0cc0 commit 1048331
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions derive_builder_core/src/builder_field.rs
Expand Up @@ -117,6 +117,7 @@ impl<'a> BuilderField<'a> {

/// Helper macro for unit tests. This is _only_ public in order to be accessible
/// from doc-tests too.
#[cfg(test)] // This contains a Box::leak, so is suitable only for tests
#[doc(hidden)]
#[macro_export]
macro_rules! default_builder_field {
Expand Down

0 comments on commit 1048331

Please sign in to comment.