From c817428408c770c3fe1bee5d29137ca2322539ed Mon Sep 17 00:00:00 2001 From: Marcos Dantas Date: Sat, 17 Feb 2024 12:32:25 -0300 Subject: [PATCH 1/2] Get TokenRow from Row We're working with stream out from sql server, this implementation will improve it a lot. --- src/row.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/row.rs b/src/row.rs index 59edfd8d..ec08c3d3 100644 --- a/src/row.rs +++ b/src/row.rs @@ -413,3 +413,9 @@ impl IntoIterator for Row { self.data.into_iter() } } + +impl Into> for Row { + fn into(self) -> TokenRow<'static> { + self.data + }; +} From 601ecd3c91bea7aeb37b1bdce7500385b9830b7d Mon Sep 17 00:00:00 2001 From: Marcos Dantas Date: Sun, 18 Feb 2024 07:46:09 -0300 Subject: [PATCH 2/2] Remove dangling ; --- src/row.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/row.rs b/src/row.rs index ec08c3d3..a5a22524 100644 --- a/src/row.rs +++ b/src/row.rs @@ -417,5 +417,5 @@ impl IntoIterator for Row { impl Into> for Row { fn into(self) -> TokenRow<'static> { self.data - }; + } }