fix fmt
This commit is contained in:
parent
65c0de617f
commit
9f39ca1530
|
@ -2,8 +2,7 @@ use warp::Filter;
|
||||||
|
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() {
|
async fn main() {
|
||||||
let hello = warp::get()
|
let hello = warp::get().map(|| format!("Hello world!"));
|
||||||
.map(|| format!("Hello world!"));
|
|
||||||
|
|
||||||
warp::serve(hello).run(([127, 0, 0, 1], 5309)).await;
|
warp::serve(hello).run(([127, 0, 0, 1], 5309)).await;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue