mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 19:17:58 +00:00
Proposal: Flatten AllPallets and similar types (#11813)
* flratten AllPallets types * feature flag it * fix * fix * fmt * remove todo * Update frame/support/src/traits/metadata.rs Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> * Update frame/support/src/migrations.rs Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> * fix * mark as deprecated * add docs * fix ui test? * fmt Co-authored-by: parity-processbot <> Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
This commit is contained in:
@@ -1597,8 +1597,9 @@ fn test_storage_info() {
|
||||
#[test]
|
||||
fn assert_type_all_pallets_reversed_with_system_first_is_correct() {
|
||||
// Just ensure the 2 types are same.
|
||||
#[allow(deprecated)]
|
||||
fn _a(_t: AllPalletsReversedWithSystemFirst) {}
|
||||
fn _b(t: (System, (Example4, (Example2, (Example,))))) {
|
||||
fn _b(t: (System, Example4, Example2, Example)) {
|
||||
_a(t)
|
||||
}
|
||||
}
|
||||
@@ -1607,7 +1608,7 @@ fn assert_type_all_pallets_reversed_with_system_first_is_correct() {
|
||||
fn assert_type_all_pallets_with_system_is_correct() {
|
||||
// Just ensure the 2 types are same.
|
||||
fn _a(_t: AllPalletsWithSystem) {}
|
||||
fn _b(t: (System, (Example, (Example2, (Example4,))))) {
|
||||
fn _b(t: (System, Example, Example2, Example4)) {
|
||||
_a(t)
|
||||
}
|
||||
}
|
||||
@@ -1616,7 +1617,7 @@ fn assert_type_all_pallets_with_system_is_correct() {
|
||||
fn assert_type_all_pallets_without_system_is_correct() {
|
||||
// Just ensure the 2 types are same.
|
||||
fn _a(_t: AllPalletsWithoutSystem) {}
|
||||
fn _b(t: (Example, (Example2, (Example4,)))) {
|
||||
fn _b(t: (Example, Example2, Example4)) {
|
||||
_a(t)
|
||||
}
|
||||
}
|
||||
@@ -1624,8 +1625,9 @@ fn assert_type_all_pallets_without_system_is_correct() {
|
||||
#[test]
|
||||
fn assert_type_all_pallets_with_system_reversed_is_correct() {
|
||||
// Just ensure the 2 types are same.
|
||||
#[allow(deprecated)]
|
||||
fn _a(_t: AllPalletsWithSystemReversed) {}
|
||||
fn _b(t: (Example4, (Example2, (Example, (System,))))) {
|
||||
fn _b(t: (Example4, Example2, Example, System)) {
|
||||
_a(t)
|
||||
}
|
||||
}
|
||||
@@ -1633,8 +1635,9 @@ fn assert_type_all_pallets_with_system_reversed_is_correct() {
|
||||
#[test]
|
||||
fn assert_type_all_pallets_without_system_reversed_is_correct() {
|
||||
// Just ensure the 2 types are same.
|
||||
#[allow(deprecated)]
|
||||
fn _a(_t: AllPalletsWithoutSystemReversed) {}
|
||||
fn _b(t: (Example4, (Example2, (Example,)))) {
|
||||
fn _b(t: (Example4, Example2, Example)) {
|
||||
_a(t)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user