mirror of
https://github.com/Noratrieb/icefun.git
synced 2026-01-14 21:05:00 +01:00
Add README.md with bug report
This commit is contained in:
parent
e3064f6a97
commit
25adea4103
3 changed files with 114 additions and 2 deletions
|
|
@ -1,8 +1,7 @@
|
|||
use std::convert::Infallible;
|
||||
use std::future::Future;
|
||||
use std::net::SocketAddr;
|
||||
|
||||
use futures::{future, FutureExt};
|
||||
use futures::future;
|
||||
use hyper::service::make_service_fn;
|
||||
use warp::Filter;
|
||||
|
||||
|
|
@ -10,6 +9,8 @@ fn main() {
|
|||
let svc = warp::service(
|
||||
warp::path::end()
|
||||
.map(|| "Hello, world")
|
||||
// Try commenting out this line to make the program compile again.
|
||||
// vvvvvvvvvvvvvvvvvvvvvvvvvvv
|
||||
.with(warp::trace::request()),
|
||||
);
|
||||
let make_svc = make_service_fn(move |_| future::ok::<_, Infallible>(svc.clone()));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue