Skip to content

Commit af78253

Browse files
committed
fix clippy
1 parent b0492d4 commit af78253

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tokio-postgres/tests/test/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ async fn notices() {
577577
.unwrap();
578578

579579
let (tx, rx) = mpsc::unbounded();
580-
let stream = stream::poll_fn(move |cx| connection.poll_message(cx)).map_err(|e| panic!(e));
580+
let stream = stream::poll_fn(move |cx| connection.poll_message(cx)).map_err(|e| panic!("{}", e));
581581
let connection = stream.forward(tx).map(|r| r.unwrap());
582582
tokio::spawn(connection);
583583

@@ -612,7 +612,7 @@ async fn notifications() {
612612
let (client, mut connection) = connect_raw("user=postgres").await.unwrap();
613613

614614
let (tx, rx) = mpsc::unbounded();
615-
let stream = stream::poll_fn(move |cx| connection.poll_message(cx)).map_err(|e| panic!(e));
615+
let stream = stream::poll_fn(move |cx| connection.poll_message(cx)).map_err(|e| panic!("{}", e));
616616
let connection = stream.forward(tx).map(|r| r.unwrap());
617617
tokio::spawn(connection);
618618

0 commit comments

Comments
 (0)