Adds support for tuples in runtime-interface (#7672)

This commit is contained in:
Bastian Köcher
2020-12-06 15:14:19 +01:00
committed by GitHub
parent 4b8cee9e55
commit d9b1b14769
6 changed files with 36 additions and 3 deletions
@@ -365,7 +365,9 @@ impl<T: codec::Codec> PassBy for Option<T> {
type PassBy = Codec<Self>;
}
impl PassBy for (u32, u32, u32, u32) {
#[impl_trait_for_tuples::impl_for_tuples(30)]
#[tuple_types_no_default_trait_bound]
impl PassBy for Tuple where Self: codec::Codec {
type PassBy = Codec<Self>;
}