Reduce required lifetime

Revert lifetime change on table_filter
This commit is contained in:
gwenn 2020-10-28 20:16:53 +01:00
parent 926977846f
commit e1072b7f75

View File

@ -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,