mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-09-20 22:31:58 +00:00
cargo fix
This commit is contained in:
parent
7c2bf4c5ed
commit
1e5c57dd16
3 changed files with 5 additions and 4 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
//! Launch helper macros for fullstack apps
|
||||
#![allow(unused)]
|
||||
|
||||
#[macro_export]
|
||||
/// Launch a server with a router
|
||||
|
|
|
@ -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<http::Request<hyper::body::Body>> for BoxedService {
|
|||
|
||||
fn poll_ready(
|
||||
&mut self,
|
||||
cx: &mut std::task::Context<'_>,
|
||||
_cx: &mut std::task::Context<'_>,
|
||||
) -> std::task::Poll<Result<(), Self::Error>> {
|
||||
Ok(()).into()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue