File tree 1 file changed +7
-2
lines changed
futures-util/src/future/future
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,6 @@ impl<Fut: Future> Shared<Fut> {
103
103
impl < Fut > Shared < Fut >
104
104
where
105
105
Fut : Future ,
106
- Fut :: Output : Clone ,
107
106
{
108
107
/// Returns [`Some`] containing a reference to this [`Shared`]'s output if
109
108
/// it has already been computed by a clone or [`None`] if it hasn't been
@@ -160,7 +159,6 @@ where
160
159
impl < Fut > Inner < Fut >
161
160
where
162
161
Fut : Future ,
163
- Fut :: Output : Clone ,
164
162
{
165
163
/// Safety: callers must first ensure that `self.inner.state`
166
164
/// is `COMPLETE`
@@ -170,6 +168,13 @@ where
170
168
FutureOrOutput :: Future ( _) => unreachable ! ( ) ,
171
169
}
172
170
}
171
+ }
172
+
173
+ impl < Fut > Inner < Fut >
174
+ where
175
+ Fut : Future ,
176
+ Fut :: Output : Clone ,
177
+ {
173
178
/// Registers the current task to receive a wakeup when we are awoken.
174
179
fn record_waker ( & self , waker_key : & mut usize , cx : & mut Context < ' _ > ) {
175
180
let mut wakers_guard = self . notifier . wakers . lock ( ) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments