Skip to content

Clone issue on recursive, v1.0.0-alpha.4 #524

Answered by wackbyte
soywod asked this question in Q&A
Discussion options

You must be logged in to vote

The error is occuring because recursive requires the parser it contains to implement Clone, but impl Parser is an opaque type that only implements Parser and not Clone. Therefore, the solution is likely to add + Clone to the return type of all the other parsers you use in this function (multipart_type(), encrypt(), etc.).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@soywod
Comment options

Answer selected by soywod
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants