Skip to content

Commit c9fa2e6

Browse files
committed
Format.
1 parent a9b4e32 commit c9fa2e6

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

benches/async_client_bench.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ extern crate test;
44

55
use fastcgi_client::{request::Request, Client, Params};
66
use std::env::current_dir;
7+
use test::Bencher;
78
use tokio::{
89
io::{self, AsyncRead, AsyncWrite},
910
net::TcpStream,
1011
};
11-
use test::Bencher;
1212

1313
mod common;
1414

tests/async_client_post_test.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
use fastcgi_client::{request::Request, Client, Params};
2-
use std::env::current_dir;
3-
use tokio::net::TcpStream;
4-
use tokio::time::timeout;
5-
use std::time::Duration;
2+
use std::{env::current_dir, time::Duration};
3+
use tokio::{net::TcpStream, time::timeout};
64

75
mod common;
86

@@ -95,11 +93,13 @@ async fn post_big_body() {
9593
.set_content_type("text/plain")
9694
.set_content_length(&len);
9795

98-
let output = timeout(Duration::from_secs(3), client
99-
.execute(Request::new(params.clone(), &mut &body[..])))
100-
.await
101-
.unwrap()
102-
.unwrap();
96+
let output = timeout(
97+
Duration::from_secs(3),
98+
client.execute(Request::new(params.clone(), &mut &body[..])),
99+
)
100+
.await
101+
.unwrap()
102+
.unwrap();
103103

104104
let stdout = String::from_utf8(output.get_stdout().unwrap_or(Default::default())).unwrap();
105105
assert!(stdout.contains("Content-type: text/html; charset=UTF-8"));

0 commit comments

Comments
 (0)