From 44853fa3e8740f2abcff8b632a9265e7d0c3060f Mon Sep 17 00:00:00 2001 From: Willem Olding Date: Wed, 10 Apr 2024 20:54:13 +1000 Subject: [PATCH] fix broken echo example --- tower-cartesi/examples/echo.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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> {