Author: Jason White [github@jasonwhite.io]
Hash: bffdd16205bbe726fb7afd3a0e03ce4f5337b11c
Timestamp: Mon, 16 Dec 2019 01:11:11 +0000 (4 years ago)

+4 -4 +/-1 browse
Fix clippy warning
1diff --git a/src/app.rs b/src/app.rs
2index bd695d8..a6629e6 100644
3--- a/src/app.rs
4+++ b/src/app.rs
5 @@ -159,7 +159,7 @@ where
6 self.state.storage.get(&key).from_err::<Error>().and_then(
7 move |object| -> Result<_, Error> {
8 if let Some(object) = object {
9- return Response::builder()
10+ Response::builder()
11 .status(StatusCode::OK)
12 .header(
13 header::CONTENT_TYPE,
14 @@ -167,12 +167,12 @@ where
15 )
16 .header(header::CONTENT_LENGTH, object.len())
17 .body(Body::wrap_stream(object.stream()))
18- .map_err(Into::into);
19+ .map_err(Into::into)
20 } else {
21- return Response::builder()
22+ Response::builder()
23 .status(StatusCode::NOT_FOUND)
24 .body(Body::empty())
25- .map_err(Into::into);
26+ .map_err(Into::into)
27 }
28 },
29 )