diff --git a/packages/fullstack/src/adapters/mod.rs b/packages/fullstack/src/adapters/mod.rs index 590596563..7a0ef3ad7 100644 --- a/packages/fullstack/src/adapters/mod.rs +++ b/packages/fullstack/src/adapters/mod.rs @@ -20,8 +20,8 @@ pub mod warp_adapter; use std::sync::{Arc, RwLock}; use http::StatusCode; -use http_body_util::BodyExt; -use hyper::body::Body; + + use server_fn::{Encoding, Payload}; use tokio::task::spawn_blocking; diff --git a/packages/fullstack/src/launch.rs b/packages/fullstack/src/launch.rs index 228ddf4f3..ced609cf4 100644 --- a/packages/fullstack/src/launch.rs +++ b/packages/fullstack/src/launch.rs @@ -1,4 +1,5 @@ //! Launch helper macros for fullstack apps +#![allow(unused)] #[macro_export] /// Launch a server with a router diff --git a/packages/fullstack/src/layer.rs b/packages/fullstack/src/layer.rs index 2cb9b6745..213b9cde6 100644 --- a/packages/fullstack/src/layer.rs +++ b/packages/fullstack/src/layer.rs @@ -1,7 +1,7 @@ use std::pin::Pin; use http::{Request, Response}; -use hyper::Body; + pub trait Layer: Send + Sync + 'static { fn layer(&self, inner: BoxedService) -> BoxedService; @@ -66,7 +66,7 @@ impl tower::Service> for BoxedService { fn poll_ready( &mut self, - cx: &mut std::task::Context<'_>, + _cx: &mut std::task::Context<'_>, ) -> std::task::Poll> { Ok(()).into() }