fix clippy
This commit is contained in:
parent
b0492d45eb
commit
af7825308d
@ -577,7 +577,7 @@ async fn notices() {
|
|||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
let (tx, rx) = mpsc::unbounded();
|
let (tx, rx) = mpsc::unbounded();
|
||||||
let stream = stream::poll_fn(move |cx| connection.poll_message(cx)).map_err(|e| panic!(e));
|
let stream = stream::poll_fn(move |cx| connection.poll_message(cx)).map_err(|e| panic!("{}", e));
|
||||||
let connection = stream.forward(tx).map(|r| r.unwrap());
|
let connection = stream.forward(tx).map(|r| r.unwrap());
|
||||||
tokio::spawn(connection);
|
tokio::spawn(connection);
|
||||||
|
|
||||||
@ -612,7 +612,7 @@ async fn notifications() {
|
|||||||
let (client, mut connection) = connect_raw("user=postgres").await.unwrap();
|
let (client, mut connection) = connect_raw("user=postgres").await.unwrap();
|
||||||
|
|
||||||
let (tx, rx) = mpsc::unbounded();
|
let (tx, rx) = mpsc::unbounded();
|
||||||
let stream = stream::poll_fn(move |cx| connection.poll_message(cx)).map_err(|e| panic!(e));
|
let stream = stream::poll_fn(move |cx| connection.poll_message(cx)).map_err(|e| panic!("{}", e));
|
||||||
let connection = stream.forward(tx).map(|r| r.unwrap());
|
let connection = stream.forward(tx).map(|r| r.unwrap());
|
||||||
tokio::spawn(connection);
|
tokio::spawn(connection);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user