Skip to content
This repository was archived by the owner on Jun 21, 2020. It is now read-only.

Commit 7f08c08

Browse files
committed
fmt
1 parent f35238d commit 7f08c08

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

http-service-mock/src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ impl<T: HttpService> TestBackend<T> {
2626
}
2727

2828
/// Send a request to the simulated server
29-
pub fn simulate(&mut self, req: Request) -> Result<Response, <T::Fut as TryFuture>::Error> {
29+
pub fn simulate(
30+
&mut self,
31+
req: Request,
32+
) -> Result<Response, <T::ResponseFuture as TryFuture>::Error> {
3033
block_on(
3134
self.service
3235
.respond(&mut self.connection, req)

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ impl Body {
9696
}
9797

9898
/// Reads the stream into a new `Vec`.
99+
#[allow(unused_mut)]
99100
#[allow(clippy::wrong_self_convention)] // https://github.com/rust-lang/rust-clippy/issues/4037
100101
pub async fn into_vec(mut self) -> std::io::Result<Vec<u8>> {
101102
let mut bytes = Vec::new();

0 commit comments

Comments
 (0)