File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -161,14 +161,14 @@ cfg_rt! {
161
161
/// error[E0391]: cycle detected when processing `main`
162
162
/// ```
163
163
#[ track_caller]
164
- pub fn spawn<T >( future: T ) -> JoinHandle <T :: Output >
164
+ pub fn spawn<F >( future: F ) -> JoinHandle <F :: Output >
165
165
where
166
- T : Future + Send + ' static ,
167
- T :: Output : Send + ' static ,
166
+ F : Future + Send + ' static ,
167
+ F :: Output : Send + ' static ,
168
168
{
169
169
// preventing stack overflows on debug mode, by quickly sending the
170
170
// task to the heap.
171
- if cfg!( debug_assertions) && std:: mem:: size_of:: <T >( ) > 2048 {
171
+ if cfg!( debug_assertions) && std:: mem:: size_of:: <F >( ) > 2048 {
172
172
spawn_inner( Box :: pin( future) , None )
173
173
} else {
174
174
spawn_inner( future, None )
You can’t perform that action at this time.
0 commit comments