Commit 92acf81 1 parent f8ce3fb commit 92acf81 Copy full SHA for 92acf81
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 118
118
//! # Explanation
119
119
//!
120
120
//! Async fns get transformed into methods that return `Pin<Box<dyn Future +
121
- //! Send + 'async >>` and delegate to a private async freestanding function.
121
+ //! Send + 'async_trait >>` and delegate to a private async freestanding function.
122
122
//!
123
123
//! For example the `impl Advertisement for AutoplayingVideo` above would be
124
124
//! expanded as:
125
125
//!
126
126
//! ```
127
127
//! # const IGNORE: &str = stringify! {
128
128
//! impl Advertisement for AutoplayingVideo {
129
- //! fn run<'async >(
130
- //! &'async self,
131
- //! ) -> Pin<Box<dyn core::future::Future<Output = ()> + Send + 'async >>
129
+ //! fn run<'async_trait >(
130
+ //! &'async_trait self,
131
+ //! ) -> Pin<Box<dyn core::future::Future<Output = ()> + Send + 'async_trait >>
132
132
//! where
133
- //! Self: Sync + 'async ,
133
+ //! Self: Sync + 'async_trait ,
134
134
//! {
135
135
//! async fn run(_self: &AutoplayingVideo) {
136
136
//! /* the original method body */
You can’t perform that action at this time.
0 commit comments