Fix missed clippy problems
This commit is contained in:
Родитель
2cd6a7d30f
Коммит
d8e6592325
|
@ -73,7 +73,7 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn heartbeat() {
|
||||
let mut srv = test::TestServer::build_with_state(|| EndpointState::default())
|
||||
let mut srv = test::TestServer::build_with_state(EndpointState::default)
|
||||
.start(|app| app.handler(&super::heartbeat));
|
||||
let req = srv.get().finish().unwrap();
|
||||
let resp = srv.execute(req.send()).unwrap();
|
||||
|
@ -82,7 +82,7 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn version() {
|
||||
let mut srv = test::TestServer::build_with_state(|| EndpointState::default())
|
||||
let mut srv = test::TestServer::build_with_state(EndpointState::default)
|
||||
.start(|app| app.handler(&super::version));
|
||||
let req = srv.get().finish().unwrap();
|
||||
let resp = srv.execute(req.send()).unwrap();
|
||||
|
|
Загрузка…
Ссылка в новой задаче