Skip to content

Commit 9e15e25

Browse files
author
Harry Barber
committed
Remove TryFuture sealing
1 parent 4587897 commit 9e15e25

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

futures-core/src/future.rs

+1-11
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,9 @@ where
4444
}
4545
}
4646

47-
mod private_try_future {
48-
use super::Future;
49-
50-
pub trait Sealed {}
51-
52-
impl<F, T, E> Sealed for F where F: ?Sized + Future<Output = Result<T, E>> {}
53-
}
54-
5547
/// A convenience for futures that return `Result` values that includes
5648
/// a variety of adapters tailored to such futures.
57-
pub trait TryFuture:
58-
Future<Output = Result<Self::Ok, Self::Error>> + private_try_future::Sealed
59-
{
49+
pub trait TryFuture: Future<Output = Result<Self::Ok, Self::Error>> {
6050
/// The type of successful values yielded by this future
6151
type Ok;
6252

0 commit comments

Comments
 (0)