Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refac(console): remove useless
Pin::new()
on streaming (#485)
It seems we don't need to `Pin` it here. For the `next` API: ```rust /// Creates a future that resolves to the next item in the stream. /// /// Note that because `next` doesn't take ownership over the stream, /// the [`Stream`] type must be [`Unpin`]. If you want to use `next` with a /// [`!Unpin`](Unpin) stream, you'll first have to pin the stream. This can /// be done by boxing the stream using [`Box::pin`] or /// pinning it to the stack using the `pin_mut!` macro from the `pin_utils` /// crate. ``` But here it is an `Unpin` stream, so we don't need to pin it.
- Loading branch information