blob: 7b784383d02ca46d2c8a7b2af4dc94cdaa831571 [file] [log] [blame]
use std::pin::Pin;
use crate::prelude::*;
use crate::stream::{FromStream, IntoStream};
impl FromStream<()> for () {
#[inline]
fn from_stream<'a, S: IntoStream<Item = ()> + 'a>(
stream: S,
) -> Pin<Box<dyn Future<Output = Self> + 'a>> {
Box::pin(stream.into_stream().for_each(drop))
}
}