Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6a0cd0a

Browse files
committedMar 17, 2025·
better api
1 parent 8606b38 commit 6a0cd0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎pgdog/src/backend/pool/connection/buffer.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ impl Buffer {
9494
aggregate: &Aggregate,
9595
rd: &RowDescription,
9696
) -> Result<(), super::Error> {
97-
let buffer: VecDeque<DataRow> = self.buffer.drain(0..).collect();
97+
let buffer: VecDeque<DataRow> = std::mem::take(&mut self.buffer);
9898
if aggregate.is_empty() {
9999
self.buffer = buffer;
100100
} else {

0 commit comments

Comments
 (0)
Please sign in to comment.