Skip to content

Commit 3dc1c8b

Browse files
committed
clippy
1 parent 4ca9f2b commit 3dc1c8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/util/connection_pool.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ impl Context {
180180
.timeout(context.options.connect_timeout)
181181
.await
182182
.map_err(|_| PoolConnectError::Timeout)
183-
.and_then(|r| r.map_err(PoolConnectError::from));
183+
.and_then(|r| r);
184184
let conn_close = match &state {
185185
Ok(conn) => {
186186
let conn = conn.clone();
@@ -799,7 +799,7 @@ mod tests {
799799
let msg = b"Hello, pool!".to_vec();
800800
for id in &ids {
801801
let res = client.echo(*id, msg.clone()).await;
802-
assert!(matches!(res, Err(PoolConnectError::Timeout { .. })));
802+
assert!(matches!(res, Err(PoolConnectError::Timeout)));
803803
}
804804
shutdown_routers(routers).await;
805805
Ok(())

0 commit comments

Comments
 (0)