File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 118118//! # Explanation
119119//!
120120//! 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.
122122//!
123123//! For example the `impl Advertisement for AutoplayingVideo` above would be
124124//! expanded as:
125125//!
126126//! ```
127127//! # const IGNORE: &str = stringify! {
128128//! 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 >>
132132//! where
133- //! Self: Sync + 'async ,
133+ //! Self: Sync + 'async_trait ,
134134//! {
135135//! async fn run(_self: &AutoplayingVideo) {
136136//! /* the original method body */
You can’t perform that action at this time.
0 commit comments