feat(frame-support-procedural): add automaticaly_derived attr to NoBound derives (#2197)

fixes #2196
This commit is contained in:
benluelo
2023-11-08 10:51:40 +00:00
committed by GitHub
parent 2e2a75ff81
commit 640e385aec
5 changed files with 7 additions and 0 deletions
@@ -136,6 +136,7 @@ struct StructNoGenerics {
field2: u64,
}
#[allow(dead_code)]
#[derive(DebugNoBound, CloneNoBound, EqNoBound, PartialEqNoBound, DefaultNoBound)]
enum EnumNoGenerics {
#[default]
@@ -162,6 +163,7 @@ enum Enum<T: Config, U, V> {
}
// enum that will have a named default.
#[allow(dead_code)]
#[derive(DebugNoBound, CloneNoBound, EqNoBound, PartialEqNoBound, DefaultNoBound)]
enum Enum2<T: Config> {
#[default]
@@ -175,6 +177,7 @@ enum Enum2<T: Config> {
VariantUnit2,
}
#[allow(dead_code)]
// enum that will have a unit default.
#[derive(DebugNoBound, CloneNoBound, EqNoBound, PartialEqNoBound, DefaultNoBound)]
enum Enum3<T: Config> {