Skip to content

Commit 9f80b7f

Browse files
committed
Merge branch 'release/v1.1.0'
2 parents 951224e + 418de10 commit 9f80b7f

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "routerify-json-response"
3-
version = "1.0.1"
3+
version = "1.1.0"
44
description = "A Routerify utility library to generate JSON response."
55
homepage = "https://github.com/routerify/routerify-json-response"
66
repository = "https://github.com/routerify/routerify-json-response"
@@ -13,7 +13,7 @@ edition = "2018"
1313

1414
[dependencies]
1515
hyper = "0.13"
16-
routerify = "1.0"
16+
routerify = "1.1"
1717
serde = { version = "1.0", features = ["derive"] }
1818
serde_json = "1.0"
1919

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ Add this to your `Cargo.toml`:
3535

3636
```toml
3737
[dependencies]
38-
routerify = "1.0"
39-
routerify-json-response = "1.0"
38+
routerify = "1.1"
39+
routerify-json-response = "1.1"
4040
```
4141

4242
## Example
@@ -81,7 +81,7 @@ async fn main() {
8181
let router = router();
8282

8383
// Create a Service from the router above to handle incoming requests.
84-
let service = RouterService::new(router);
84+
let service = RouterService::new(router).unwrap();
8585

8686
// The address on which the server will be listening.
8787
let addr = SocketAddr::from(([127, 0, 0, 1], 3001));

examples/example.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ async fn main() {
3737
let router = router();
3838

3939
// Create a Service from the router above to handle incoming requests.
40-
let service = RouterService::new(router);
40+
let service = RouterService::new(router).unwrap();
4141

4242
// The address on which the server will be listening.
4343
let addr = SocketAddr::from(([127, 0, 0, 1], 3001));

examples/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ fn router() -> Router<Body, Infallible> {
1717
async fn main() {
1818
let router = router();
1919

20-
let service = RouterService::new(router);
20+
let service = RouterService::new(router).unwrap();
2121

2222
let addr = SocketAddr::from(([127, 0, 0, 1], 3001));
2323

examples/test_stream_body.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ fn router() -> Router<StreamBody, Infallible> {
1818
async fn main() {
1919
let router = router();
2020

21-
let service = RouterService::new(router);
21+
let service = RouterService::new(router).unwrap();
2222

2323
let addr = SocketAddr::from(([127, 0, 0, 1], 3001));
2424

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
//! let router = router();
6363
//!
6464
//! // Create a Service from the router above to handle incoming requests.
65-
//! let service = RouterService::new(router);
65+
//! let service = RouterService::new(router).unwrap();
6666
//!
6767
//! // The address on which the server will be listening.
6868
//! let addr = SocketAddr::from(([127, 0, 0, 1], 3001));

0 commit comments

Comments
 (0)