mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-23 00:39:20 +08:00
Reduce required lifetime
Revert lifetime change on table_filter
This commit is contained in:
parent
926977846f
commit
e1072b7f75
@ -53,9 +53,9 @@ impl Session<'_> {
|
||||
}
|
||||
|
||||
/// Set a table filter
|
||||
pub fn table_filter<'s, F>(&'s mut self, filter: Option<F>)
|
||||
pub fn table_filter<F>(&mut self, filter: Option<F>)
|
||||
where
|
||||
F: Fn(&str) -> bool + Send + RefUnwindSafe + 's,
|
||||
F: Fn(&str) -> bool + Send + RefUnwindSafe + 'static,
|
||||
{
|
||||
unsafe extern "C" fn call_boxed_closure<F>(
|
||||
p_arg: *mut c_void,
|
||||
|
Loading…
Reference in New Issue
Block a user