From d127f54f0ca9cdb2f14843799c6a597eac59e24e Mon Sep 17 00:00:00 2001 From: Mylloon Date: Wed, 5 Jan 2022 01:50:12 +0100 Subject: [PATCH] remove double & --- src/mattermost.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mattermost.rs b/src/mattermost.rs index ff6d276..2781817 100644 --- a/src/mattermost.rs +++ b/src/mattermost.rs @@ -152,7 +152,7 @@ pub async fn channel_id_by_name(api: &mattermost_api::client::Mattermost, salon: match get_channel_info(api).await { Ok(channels) => { for channel in &channels { - if &channel.name == &salon { + if channel.name == salon { return channel.id.clone(); } }