From 92acf8138a04cc7933560aead0804b0e487f1111 Mon Sep 17 00:00:00 2001 From: erer1243 Date: Wed, 5 Jul 2023 12:26:53 -0400 Subject: [PATCH] Update doc comments to use lifetime 'async_trait instead of 'async --- src/lib.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index b2b77fc..8e5eb84 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -118,7 +118,7 @@ //! # Explanation //! //! Async fns get transformed into methods that return `Pin>` and delegate to a private async freestanding function. +//! Send + 'async_trait>>` and delegate to a private async freestanding function. //! //! For example the `impl Advertisement for AutoplayingVideo` above would be //! expanded as: @@ -126,11 +126,11 @@ //! ``` //! # const IGNORE: &str = stringify! { //! impl Advertisement for AutoplayingVideo { -//! fn run<'async>( -//! &'async self, -//! ) -> Pin + Send + 'async>> +//! fn run<'async_trait>( +//! &'async_trait self, +//! ) -> Pin + Send + 'async_trait>> //! where -//! Self: Sync + 'async, +//! Self: Sync + 'async_trait, //! { //! async fn run(_self: &AutoplayingVideo) { //! /* the original method body */