diff options
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -413,6 +413,11 @@ impl TypeTransform { let inner = inner.convert(quote!(x)); quote! {#arg.into_iter().map(|x| #inner).collect()} } + TypeTransform::CollectionMap(key, value) => { + let key = key.convert(quote!(k)); + let value = value.convert(quote!(v)); + quote! {#arg.into_iter().map(|(k,v)| (#key, #value)).collect()} + } TypeTransform::NoOp => arg, } } |