update examples

This commit is contained in:
David Pedersen
2022-07-03 21:47:23 +02:00
parent 02f9ebaee9
commit 16ef59b6ce
38 changed files with 101 additions and 83 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ async fn main() {
.init();
// build our application with some routes
let app = Router::new().route("/", get(show_form).post(accept_form));
let app = Router::without_state().route("/", get(show_form).post(accept_form));
// run it with hyper
let addr = SocketAddr::from(([127, 0, 0, 1], 3000));