diff options
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -409,7 +409,11 @@ impl TypeTransform { quote! {#arg.map_err(|x| #err_inner)} } } - _other => arg, + TypeTransform::Collection(inner) => { + let inner = inner.convert(quote!(x)); + quote! {#arg.into_iter().map(|x| #inner).collect()} + } + TypeTransform::NoOp => arg, } } } |