Rewrite traits to use async-fn-in-trait.

- Stub
- BeforeRequest
- AfterRequest

Also removed the last remaining usage of an unstable feature,
iter_intersperse.
This commit is contained in:
Tim Kuehn
2023-11-06 12:43:48 -08:00
committed by Tim
parent 84932df9b4
commit 6cf18a1caf
22 changed files with 97 additions and 251 deletions

View File

@@ -1,6 +1,3 @@
#![allow(incomplete_features)]
#![feature(async_fn_in_trait)]
// these need to be out here rather than inside the function so that the
// assert_type_eq macro can pick them up.
#[tarpc::service]

View File

@@ -1,6 +1,3 @@
#![allow(incomplete_features)]
#![feature(async_fn_in_trait)]
use tarpc::context;
#[test]