Skip to content

Commit 848c241

Browse files
committed
fix: avoid async closure (not allowed by rust version)
1 parent 685f0ba commit 848c241

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pg/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ impl AsyncPgConnection {
775775
) -> impl futures_core::Stream<Item = QueryResult<diesel::pg::PgNotification>> + '_ {
776776
match &mut self.notification_rx {
777777
None => Either::Left(futures_util::stream::pending()),
778-
Some(rx) => Either::Right(futures_util::stream::unfold(rx, async |rx| {
778+
Some(rx) => Either::Right(futures_util::stream::unfold(rx, |rx| async {
779779
rx.recv().await.map(move |item| (item, rx))
780780
})),
781781
}

0 commit comments

Comments
 (0)