From e1072b7f75d26d3f2351a1ff7737b81b41f73093 Mon Sep 17 00:00:00 2001 From: gwenn Date: Wed, 28 Oct 2020 20:16:53 +0100 Subject: [PATCH] Reduce required lifetime Revert lifetime change on table_filter --- src/session.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/session.rs b/src/session.rs index 2dc6235..97ae3a5 100644 --- a/src/session.rs +++ b/src/session.rs @@ -53,9 +53,9 @@ impl Session<'_> { } /// Set a table filter - pub fn table_filter<'s, F>(&'s mut self, filter: Option) + pub fn table_filter(&mut self, filter: Option) where - F: Fn(&str) -> bool + Send + RefUnwindSafe + 's, + F: Fn(&str) -> bool + Send + RefUnwindSafe + 'static, { unsafe extern "C" fn call_boxed_closure( p_arg: *mut c_void,