Skip to content

Commit 9325e37

Browse files
author
Rain Jiang
committed
remove the unused code
1 parent 6926ae5 commit 9325e37

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

service-async/src/boxed.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ use std::{
55
pin::Pin,
66
};
77

8-
// pub use futures_util::future::LocalBoxFuture;
9-
108
use crate::{MakeService, Service};
119

1210
pub struct BoxedService<Request, Response, E> {
@@ -83,14 +81,11 @@ where
8381
type BoxedFuture<T, E> = Pin<Box<dyn Future<Output = Result<T, E>>>>;
8482

8583
struct ServiceVtable<T, U, E> {
86-
call: unsafe fn(raw: *const (), req: T) -> BoxedFuture<U,E>,
84+
call: unsafe fn(raw: *const (), req: T) -> BoxedFuture<U, E>,
8785
drop: unsafe fn(raw: *const ()),
8886
}
8987

90-
unsafe fn call<R, S>(
91-
svc: *const (),
92-
req: R,
93-
) -> BoxedFuture<S::Response, S::Error>
88+
unsafe fn call<R, S>(svc: *const (), req: R) -> BoxedFuture<S::Response, S::Error>
9489
where
9590
R: 'static,
9691
S: Service<R> + 'static,

0 commit comments

Comments
 (0)