Skip to content
Discussion options

You must be logged in to vote

If I remember correctly the trait Into<ActiveModel> is only implemented for owned scrapes::Model, not &scrapes::Model. That's it

Inline, the compiler can move the owned value into into(). In your function, you pass a reference, so no matching impl exist and you need .clone() first.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by mzagrabe
Comment options

You must be logged in to vote
0 replies
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