jonhoo / rust-imap

IMAP client library for Rust
Apache License 2.0
477 stars 80 forks source link

Flag static #206

Closed TornaxO7 closed 2 years ago

TornaxO7 commented 3 years ago

Adding a function which will makes it possible to convert a Flag<'a> into a Flag<'static> in order to be able to store flags.

This should also fix my issue.


This change is Reviewable

TornaxO7 commented 3 years ago

Oh, I didn't knew that it was already implemented in the imap-3.0.0-alpha.4 version. Should I close this pull request then?

jonhoo commented 3 years ago

Ah, no, the into_owned method doesn't exist for Flag in 3.0.0, I was just pointing out that that's the name we've used for other types that have similar functionality :)