Skip to content

Commit cfd9163

Browse files
committed
PR Fix: Only use single clone for RowDescription
1 parent bd6350c commit cfd9163

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tokio-postgres/src/simple_query.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ impl Stream for SimpleQueryStream {
101101
.map_err(Error::parse)?
102102
.into();
103103

104-
*this.columns = Some(columns.clone());
104+
*this.columns = Some(columns);
105105
Poll::Ready(Some(Ok(SimpleQueryMessage::RowDescription(
106-
columns.clone(),
106+
this.columns.as_ref().unwrap().clone(),
107107
))))
108108
}
109109
Message::DataRow(body) => {

0 commit comments

Comments
 (0)