1pub mod futures {
2 use core::future::Future;
3
4 pub trait IntoFaillble<O, E>: Future<Output = O> + Sized {
5 async fn into_fallible(self) -> Result<O, E> {
6 Ok(self.await)
7 }
8 }
9
10 impl<T, O, E> IntoFaillble<O, E> for T where T: Future<Output = O> {}
11}