cros_async: fix unknown function warning in docs

Specify the type so cargo doc can find the right async_from function.
Fixes a warning when running tools/cargo-doc.

BUG=None
TEST=tools/cargo-doc

Change-Id: Ida4431cd663d4b5959a58a707c9c89d7569df986
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3764043
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org>
Tested-by: Daniel Verkamp <dverkamp@chromium.org>
This commit is contained in:
Daniel Verkamp 2022-07-15 14:09:37 -07:00 committed by crosvm LUCI
parent 0a5f9fc411
commit 84c58c7958

View file

@ -176,7 +176,7 @@ impl Executor {
}
}
/// Same as [`async_from`], but without the `Send` requirement and only usable on thread-local
/// Same as [`Executor::async_from()`], but without the `Send` requirement and only usable on thread-local
/// executors.
pub fn async_from_local<'a, F: IntoAsync + 'a>(
&self,