Skip to content

Commit

Permalink
refactor(rumqttc/client): remove redundant call to into_iter()
Browse files Browse the repository at this point in the history
  • Loading branch information
Arunanshu Biswas committed Mar 28, 2024
1 parent 3ffebb3 commit c7a6e35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rumqttc/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ impl AsyncClient {
where
T: IntoIterator<Item = SubscribeFilter>,
{
let subscribe = Subscribe::new_many(topics.into_iter());
let subscribe = Subscribe::new_many(topics);
let is_err = subscribe.filters.iter().any(|t| !valid_filter(&t.path));
let request = Request::Subscribe(subscribe);
if is_err {
Expand Down

0 comments on commit c7a6e35

Please sign in to comment.