diff --git a/crates/milli/src/vector/json_template/mod.rs b/crates/milli/src/vector/json_template/mod.rs index 3aa3b1822..1e56b6124 100644 --- a/crates/milli/src/vector/json_template/mod.rs +++ b/crates/milli/src/vector/json_template/mod.rs @@ -107,7 +107,7 @@ impl JsonTemplate { /// # Error /// /// - If any of the strings contains a template that cannot be rendered from the contents of the search query - pub fn render_search(&self, q: Option, media: Value) -> Result { + pub fn render_search(&self, q: Option<&str>, media: &Value) -> Result { let search_data = liquid::object!({ "q": q, "media": media