Skip to content

Commit

Permalink
prep actix-framed release
Browse files Browse the repository at this point in the history
  • Loading branch information
fafhrd91 committed Dec 25, 2019
1 parent f86ce03 commit 7b3c99b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
3 changes: 1 addition & 2 deletions actix-framed/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ categories = ["network-programming", "asynchronous",
"web-programming::websocket"]
license = "MIT/Apache-2.0"
edition = "2018"
workspace =".."

[lib]
name = "actix_framed"
Expand All @@ -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"

Expand Down
4 changes: 4 additions & 0 deletions actix-framed/changes.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
14 changes: 7 additions & 7 deletions src/resource.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7b3c99b

Please sign in to comment.