pallet macro: always generate storage info on pallet struct (#9246)

* always implement storage info on Pallet

* fix UI test

* Fold span computation into trait and method computation

Co-authored-by: Keith Yeung <kungfukeith11@gmail.com>
This commit is contained in:
Guillaume ThiolliereandKeith Yeung authored and GitHub committed 2021-07-05 11:23:43 +00:00
1 parent f93074d086
commit f96c5df754
13 files changed
+338 -35

No files matched your search

@@ -74,3 +74,11 @@ impl StorageInfoTrait for Tuple {
res
}
}
/// Similar to [`StorageInfoTrait`], a trait to give partial information about storage.
///
/// This is useful when a type can give some partial information with its generic parameter doesn't
/// implement some bounds.
pub trait PartialStorageInfoTrait {
fn partial_storage_info() -> Vec<StorageInfo>;
}