chore: clippy

This commit is contained in:
Paul Makles
2022-04-21 17:53:16 +01:00
parent d7839f1790
commit 02ba8c7978

View File

@@ -86,7 +86,7 @@ pub async fn message_send(
// 1. Parse mentions in message.
let mut mentions = HashSet::new();
if let Some(content) = &data.content {
for capture in RE_MENTION.captures_iter(&content) {
for capture in RE_MENTION.captures_iter(content) {
if let Some(mention) = capture.get(1) {
mentions.insert(mention.as_str().to_string());
}