From 7c1efcb47222b8cc8f823d9f3a42e095c1acffe3 Mon Sep 17 00:00:00 2001 From: Rain Jiang Date: Thu, 9 Nov 2023 19:30:45 +0000 Subject: [PATCH] remove the unused code --- service-async/src/boxed.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/service-async/src/boxed.rs b/service-async/src/boxed.rs index d463d22..4a3c6be 100644 --- a/service-async/src/boxed.rs +++ b/service-async/src/boxed.rs @@ -5,8 +5,6 @@ use std::{ pin::Pin, }; -// pub use futures_util::future::LocalBoxFuture; - use crate::{MakeService, Service}; pub struct BoxedService { @@ -83,14 +81,11 @@ where type BoxedFuture = Pin>>>; struct ServiceVtable { - call: unsafe fn(raw: *const (), req: T) -> BoxedFuture, + call: unsafe fn(raw: *const (), req: T) -> BoxedFuture, drop: unsafe fn(raw: *const ()), } -unsafe fn call( - svc: *const (), - req: R, -) -> BoxedFuture +unsafe fn call(svc: *const (), req: R) -> BoxedFuture where R: 'static, S: Service + 'static,