File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -103,18 +103,18 @@ can't be that badly broken.
103
103
## Explanation
104
104
105
105
Async fns get transformed into methods that return `Pin<Box<dyn Future + Send +
106
- 'async >>` and delegate to a private async freestanding function.
106
+ 'async_trait >>` and delegate to a private async freestanding function.
107
107
108
108
For example the ` impl Advertisement for AutoplayingVideo ` above would be
109
109
expanded as:
110
110
111
111
``` rust
112
112
impl Advertisement for AutoplayingVideo {
113
- fn run <'async >(
114
- & 'async self ,
115
- ) -> Pin <Box <dyn std :: future :: Future <Output = ()> + Send + 'async >>
113
+ fn run <'async_trait >(
114
+ & 'async_trait self ,
115
+ ) -> Pin <Box <dyn std :: future :: Future <Output = ()> + Send + 'async_trait >>
116
116
where
117
- Self : Sync + 'async ,
117
+ Self : Sync + 'async_trait ,
118
118
{
119
119
async fn run (_self : & AutoplayingVideo ) {
120
120
/* the original method body */
You can’t perform that action at this time.
0 commit comments