Upgrade async-trait to 0.1.73
This project was upgraded with external_updater.
Usage: tools/external_updater/updater.sh update rust/crates/async-trait
For more info, check https://cs.android.com/android/platform/superproject/+/main:tools/external_updater/README.md
Test: TreeHugger
Change-Id: I6ca2d54e5684edb52f2cf797d4a7ddb1727a3b02
Bug: 295883071
diff --git a/src/lib.rs b/src/lib.rs
index ec893f6..e35dd03 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -118,7 +118,7 @@
//! # Explanation
//!
//! Async fns get transformed into methods that return `Pin<Box<dyn Future +
-//! Send + 'async>>` 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<Box<dyn core::future::Future<Output = ()> + Send + 'async>>
+//! fn run<'async_trait>(
+//! &'async_trait self,
+//! ) -> Pin<Box<dyn core::future::Future<Output = ()> + Send + 'async_trait>>
//! where
-//! Self: Sync + 'async,
+//! Self: Sync + 'async_trait,
//! {
//! async fn run(_self: &AutoplayingVideo) {
//! /* the original method body */
@@ -303,7 +303,7 @@
//! let object = &value as &dyn ObjectSafe;
//! ```
-#![doc(html_root_url = "https://docs.rs/async-trait/0.1.67")]
+#![doc(html_root_url = "https://docs.rs/async-trait/0.1.73")]
#![allow(
clippy::default_trait_access,
clippy::doc_markdown,
@@ -325,6 +325,7 @@
mod lifetime;
mod parse;
mod receiver;
+mod verbatim;
use crate::args::Args;
use crate::expand::expand;