From 0421c9fb4257d41c8a4eaf46185724a1075adce8 Mon Sep 17 00:00:00 2001 From: Ryan Leckey Date: Thu, 12 Mar 2020 21:11:32 -0700 Subject: [PATCH] Add explicit life times to Cursor --- sqlx-core/src/cursor.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sqlx-core/src/cursor.rs b/sqlx-core/src/cursor.rs index caf690fd2..6bc26937c 100644 --- a/sqlx-core/src/cursor.rs +++ b/sqlx-core/src/cursor.rs @@ -34,5 +34,7 @@ where E: Execute<'q, Self::Database>; /// Fetch the next row in the result. Returns `None` if there are no more rows. - fn next(&mut self) -> BoxFuture::Row>>>; + fn next<'cur>( + &'cur mut self, + ) -> BoxFuture<'cur, crate::Result>::Row>>>; }