diff --git a/src/db/stream.rs b/src/db/stream.rs index 5d872ad..9b51af1 100644 --- a/src/db/stream.rs +++ b/src/db/stream.rs @@ -122,7 +122,11 @@ impl StreamOptions { } } - pub fn with_keywords, S: AsRef>(mut self, keywords: I) -> Self { + pub fn with_keywords(mut self, keywords: I) -> Self + where + I: IntoIterator, + I::Item: AsRef, + { self.keywords = keywords.into_iter().map(util::to_lowercase).collect(); self }