Once doesn't need Unpin bound (#554)

This commit is contained in:
Stjepan Glavina 2019-11-19 05:04:18 +01:00 committed by GitHub
parent 355e2eded8
commit 65afd41a33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,7 +39,7 @@ pin_project! {
} }
} }
impl<T: Unpin> Stream for Once<T> { impl<T> Stream for Once<T> {
type Item = T; type Item = T;
fn poll_next(self: Pin<&mut Self>, _: &mut Context<'_>) -> Poll<Option<T>> { fn poll_next(self: Pin<&mut Self>, _: &mut Context<'_>) -> Poll<Option<T>> {