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>>>; }