You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also encountered higher-ranked lifetime error, in #[OpenApi] macro. Sorry that I cannot provide the exact code, but to summarize:
One API endpoint calls an async library function with parameter &[Something]. Everything fine.
For more flexibility, the parameter type is later changed into impl Iterator<Item = Something>. Then the lifetime error appeared.
Update: It is further located that creating a Peekable with .peek() out of the iterator will lead to the error, otherwise fine. Related. At this stage I am starting to assume that it is my code that has a lifetime problem, but after some macro magic the error somehow get into poem.
Expected Behavior
Compile successfully
Actual Behavior
Failed, got:
Steps to Reproduce the Problem
Specifications
Relevant issues:
dtolnay/async-trait#215
rust-lang/rust#64552
The text was updated successfully, but these errors were encountered: