aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 439288e..c0286f8 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -390,6 +390,10 @@ impl TypeTransform {
let inner = opt.convert(quote!(x));
quote! {#arg.map(|x| #inner)}
}
+ TypeTransform::Iterator(inner) => {
+ let inner = inner.convert(quote!(x));
+ quote! {Box::new(#arg.map(|x| #inner))}
+ }
TypeTransform::Result(ok, err) => {
let map_ok = !matches!(ok.as_ref(), TypeTransform::NoOp);
let map_err = !matches!(err.as_ref(), TypeTransform::NoOp);