From 7b3c99b9337a8a237469c4bc37e512205f39b982 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Wed, 25 Dec 2019 20:17:22 +0400 Subject: [PATCH] prep actix-framed release --- actix-framed/Cargo.toml | 3 +-- actix-framed/changes.md | 4 ++++ src/resource.rs | 14 +++++++------- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/actix-framed/Cargo.toml b/actix-framed/Cargo.toml index 8466e4a81..7e322e1d4 100644 --- a/actix-framed/Cargo.toml +++ b/actix-framed/Cargo.toml @@ -13,7 +13,6 @@ categories = ["network-programming", "asynchronous", "web-programming::websocket"] license = "MIT/Apache-2.0" edition = "2018" -workspace =".." [lib] name = "actix_framed" @@ -22,7 +21,7 @@ path = "src/lib.rs" [dependencies] actix-codec = "0.2.0" actix-service = "1.0.1" -actix-router = "0.2.0" +actix-router = "0.2.1" actix-rt = "1.0.0" actix-http = "1.0.1" diff --git a/actix-framed/changes.md b/actix-framed/changes.md index 6e67e00d8..41c7aed0e 100644 --- a/actix-framed/changes.md +++ b/actix-framed/changes.md @@ -1,5 +1,9 @@ # Changes +## [0.3.0] - 2019-12-25 + +* Migrate to actix-http 1.0 + ## [0.2.1] - 2019-07-20 * Remove unneeded actix-utils dependency diff --git a/src/resource.rs b/src/resource.rs index d60d50967..d03024a07 100644 --- a/src/resource.rs +++ b/src/resource.rs @@ -663,13 +663,13 @@ mod tests { #[actix_rt::test] async fn test_pattern() { - let mut srv = - init_service(App::new().service(web::resource(["/test", "/test2"]).to(|| { - async { - Ok::<_, Error>(HttpResponse::Ok()) - } - }))) - .await; + let mut srv = init_service( + App::new().service( + web::resource(["/test", "/test2"]) + .to(|| async { Ok::<_, Error>(HttpResponse::Ok()) }), + ), + ) + .await; let req = TestRequest::with_uri("/test").to_request(); let resp = call_service(&mut srv, req).await; assert_eq!(resp.status(), StatusCode::OK);