diff --git a/src/client.rs b/src/client.rs index 94c2acd..6d55299 100644 --- a/src/client.rs +++ b/src/client.rs @@ -41,7 +41,7 @@ impl<'a> Client<'a> { async fn list_posts_raw( &mut self, limit: Option, - tags: Option>, + tags: Option, page: Option, ) -> Result { let mut url = url::Url::parse(format!("{}/posts.json", self.host).as_str())?; @@ -56,8 +56,8 @@ impl<'a> Client<'a> { } if let Some(tags) = tags { - if tags.len() > 0 { - query_params.push(format!("tags={}", tags.join(","))); + if !tags.is_empty() { + query_params.push(format!("tags={tags}")); } }