Add explicit life times to Cursor

This commit is contained in:
Ryan Leckey 2020-03-12 21:11:32 -07:00
parent 1a48cf3b2c
commit 0421c9fb42

View File

@ -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<crate::Result<Option<<Self::Database as HasRow>::Row>>>;
fn next<'cur>(
&'cur mut self,
) -> BoxFuture<'cur, crate::Result<Option<<Self::Database as HasRow<'cur>>::Row>>>;
}