mirror of
https://github.com/isar/rusqlite.git
synced 2026-01-08 03:42:24 +08:00
Remove 'static requirement on output of closure given to query_map and query_and_then.
The 'static bound was there to prevent callers from being able to save off the `SqliteRow` handles passed into the closure. This PR changes the closure to take `&SqliteRow`s instead, which provides the same feature without restricting the output of the closure.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
# Version UPCOMDING (TBD)
|
||||
|
||||
* Slight change to the closure types passed to `query_map` and `query_and_then`:
|
||||
* Remove the `'static` requirement on the closure's output type.
|
||||
* Give the closure a `&SqliteRow` instead of a `SqliteRow`.
|
||||
|
||||
# Version 0.4.0 (2015-11-03)
|
||||
|
||||
* Adds `Sized` bound to `FromSql` trait as required by RFC 1214.
|
||||
|
||||
Reference in New Issue
Block a user