diff --git a/src/query_encoding.rs b/src/query_encoding.rs index 76aed15a7..d9f9cb116 100644 --- a/src/query_encoding.rs +++ b/src/query_encoding.rs @@ -8,7 +8,7 @@ use std::borrow::Cow; -pub type EncodingOverride<'a> = Option<&'a dyn Fn(&str) -> Cow<[u8]>>; +pub type EncodingOverride<'a> = Option<&'a (dyn Fn(&str) -> Cow<[u8]> + Send + Sync)>; pub(crate) fn encode<'a>(encoding_override: EncodingOverride, input: &'a str) -> Cow<'a, [u8]> { if let Some(o) = encoding_override {