diff --git a/tower-cartesi/examples/echo.rs b/tower-cartesi/examples/echo.rs index dcb2eb1..a4f076f 100644 --- a/tower-cartesi/examples/echo.rs +++ b/tower-cartesi/examples/echo.rs @@ -1,12 +1,14 @@ +use futures_util::FutureExt; use std::env; use std::error::Error; use std::future::Future; use std::pin::Pin; use std::task::{Context, Poll}; -use futures_util::FutureExt; use tower_cartesi::{listen_http, Request, Response}; -use tower_service::{BoxError, Service}; +use tower_service::Service; + +type BoxError = Box; #[tokio::main] async fn main() -> Result<(), BoxError> {