Frame-support storage: make iterations and translate consistent (#5470)

* implementation and factorisation

* factorize test

* doc

* fix bug and improve test

* address suggestions
This commit is contained in:
Guillaume Thiolliere
2020-09-15 13:39:52 +02:00
committed by GitHub
parent bf1cbd97f8
commit e1839d5d07
4 changed files with 287 additions and 167 deletions
+2
View File
@@ -2067,6 +2067,7 @@ macro_rules! __dispatch_impl_metadata {
where $( $other_where_bounds )*
{
#[doc(hidden)]
#[allow(dead_code)]
pub fn call_functions() -> &'static [$crate::dispatch::FunctionMetadata] {
$crate::__call_to_functions!($($rest)*)
}
@@ -2140,6 +2141,7 @@ macro_rules! __impl_module_constants_metadata {
$mod_type<$trait_instance $(, $instance)?> where $( $other_where_bounds )*
{
#[doc(hidden)]
#[allow(dead_code)]
pub fn module_constants_metadata() -> &'static [$crate::dispatch::ModuleConstantMetadata] {
// Create the `ByteGetter`s
$(