Skip to content

Commit 6985639

Browse files
committed
Drop a cast that isn't necesary
1 parent 858f5ef commit 6985639

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/middleware/block_traffic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ impl Handler for BlockTraffic {
6363
Response::builder()
6464
.status(StatusCode::FORBIDDEN)
6565
.header(header::CONTENT_LENGTH, body.len())
66-
.body(Body::from_vec(body.into_bytes()) as Body)
66+
.body(Body::from_vec(body.into_bytes()))
6767
.map_err(box_error)
6868
} else {
6969
self.handler.as_ref().unwrap().call(req)

0 commit comments

Comments
 (0)