futures-rs icon indicating copy to clipboard operation
futures-rs copied to clipboard

refactor: `TryFuture`s are `Future`s now, `into_future` is no longer need

Open yhx-12243 opened this issue 1 year ago • 3 comments

Reduce a wrapper for IntoFuture struct, reduce code complexity.

yhx-12243 avatar Aug 19 '24 00:08 yhx-12243

AFAIK there are almost no crates use these IntoFutures and IntoStreams. But if one want the backward compatibility, one can define type IntoFuture<T> = T and type IntoStream<T> = T or just bump to v0.4.0, both is OK.

yhx-12243 avatar Aug 19 '24 01:08 yhx-12243

This appears to be a duplicate of https://github.com/rust-lang/futures-rs/pull/2763?

taiki-e avatar Oct 02 '24 13:10 taiki-e

This appears to be a duplicate of #2763?

Maybe to say it is an extension better.

yhx-12243 avatar Oct 04 '24 08:10 yhx-12243