aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 1f75023..6a1708f 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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,
}
}
}