Replace the Box::pin with impl Future in nightly? #242
Unanswered
ThomasCartier
asked this question in
Q&A
Replies: 1 comment
-
I'm not exactly sure what that feature flag is enabling (I haven't had the time to go read about it) but one reason to not rely on feature gated functionality is that depending on the status of that feature it may or may not be adopted soon (or at all) into the language. So for that reason, I don't like to develop (especially libraries) around these sorts of things. If it becomes part of Rust proper then yes. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Just a quick question. Using a nightly compiler (1.89, at time of writing) , is it possible to rewrite the SessionManager as follow:
it require the feature flag
#![feature(impl_trait_in_assoc_type)]
in rustc 1.89.But are there any gotchas I am not seeing? It avoid a heap allocation + I like the mental gymnatics.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions