From 6c2a29f67e1c957ca7d46702cc68b5f3124dc7eb Mon Sep 17 00:00:00 2001 From: joeydewaal <99046430+joeydewaal@users.noreply.github.com> Date: Mon, 27 Jan 2025 22:41:07 +0100 Subject: [PATCH] chore(MySql): Remove unnecessary box (#3708) --- sqlx-mysql/src/connection/executor.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sqlx-mysql/src/connection/executor.rs b/sqlx-mysql/src/connection/executor.rs index 07c7979b0..d7f8fcfa1 100644 --- a/sqlx-mysql/src/connection/executor.rs +++ b/sqlx-mysql/src/connection/executor.rs @@ -111,7 +111,7 @@ impl MySqlConnection { self.inner.stream.wait_until_ready().await?; self.inner.stream.waiting.push_back(Waiting::Result); - Ok(Box::pin(try_stream! { + Ok(try_stream! { // make a slot for the shared column data // as long as a reference to a row is not held past one iteration, this enables us // to re-use this memory freely between result sets @@ -240,7 +240,7 @@ impl MySqlConnection { r#yield!(v); } } - })) + }) } }