This commit is contained in:
Ajeet D'Souza 2024-05-05 19:46:41 +05:30
parent dbe231a11e
commit a1a196811b
1 changed files with 5 additions and 1 deletions

View File

@ -122,7 +122,11 @@ impl StreamOptions {
}
}
pub fn with_keywords<I: Iterator<Item = S>, S: AsRef<str>>(mut self, keywords: I) -> Self {
pub fn with_keywords<I>(mut self, keywords: I) -> Self
where
I: IntoIterator,
I::Item: AsRef<str>,
{
self.keywords = keywords.into_iter().map(util::to_lowercase).collect();
self
}