askama: Cannot move out of borrowed content in for loop

Hi there,

I am probably not posting this in the right place but I seek help using this library. I am trying to iterate over a list of x509Name’s using the following code in my template :

{% for entry in certificate.subject_name().entries() %}

{% endfor %}

certificate being an instance of X509. I have the following error : cannot move out of borrowed content. I am pretty new to rust, this must be something easy but I have not yet full comprehension of the concept of ownership…

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 17 (9 by maintainers)

Commits related to this issue

Most upvoted comments

@lukehsiao I think that is essentially the problem from #132, can you comment there and try the suggested fix?