We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6926ae5 commit 9325e37Copy full SHA for 9325e37
service-async/src/boxed.rs
@@ -5,8 +5,6 @@ use std::{
5
pin::Pin,
6
};
7
8
-// pub use futures_util::future::LocalBoxFuture;
9
-
10
use crate::{MakeService, Service};
11
12
pub struct BoxedService<Request, Response, E> {
@@ -83,14 +81,11 @@ where
83
81
type BoxedFuture<T, E> = Pin<Box<dyn Future<Output = Result<T, E>>>>;
84
82
85
struct ServiceVtable<T, U, E> {
86
- call: unsafe fn(raw: *const (), req: T) -> BoxedFuture<U,E>,
+ call: unsafe fn(raw: *const (), req: T) -> BoxedFuture<U, E>,
87
drop: unsafe fn(raw: *const ()),
88
}
89
90
-unsafe fn call<R, S>(
91
- svc: *const (),
92
- req: R,
93
-) -> BoxedFuture<S::Response, S::Error>
+unsafe fn call<R, S>(svc: *const (), req: R) -> BoxedFuture<S::Response, S::Error>
94
where
95
R: 'static,
96
S: Service<R> + 'static,
0 commit comments