Skip to content

Commit

Permalink
allow(default_could_be_derived) in Default examples
Browse files Browse the repository at this point in the history
  • Loading branch information
estebank committed Dec 13, 2024
1 parent 0411790 commit 874b484
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/core/src/default.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
/// your type that should be the default:
///
/// ```
/// # #![allow(dead_code)]
/// # #![allow(dead_code, default_could_be_derived)]
/// enum Kind {
/// A,
/// B,
Expand Down Expand Up @@ -121,7 +121,7 @@ pub trait Default: Sized {
/// Making your own:
///
/// ```
/// # #[allow(dead_code)]
/// # #![allow(dead_code, default_could_be_derived)]
/// enum Kind {
/// A,
/// B,
Expand Down

0 comments on commit 874b484

Please sign in to comment.