Skip to content

Commit 643f048

Browse files
committed
Fix clippy
1 parent 3c27756 commit 643f048

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed

src/builder/create_allowed_mentions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ impl CreateAllowedMentions {
9191
(Some(pos), ParseAction::Remove) => drop(self.parse.swap_remove(pos)),
9292
(None, ParseAction::Insert) => self.parse.push(value),
9393
_ => {},
94-
};
94+
}
9595

9696
self
9797
}

src/builder/create_interaction_response.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ impl Builder for CreateInteractionResponse {
168168
if msg.allowed_mentions.is_none() {
169169
msg.allowed_mentions.clone_from(&http.default_allowed_mentions);
170170
}
171-
};
171+
}
172172

173173
http.create_interaction_response(ctx.0, ctx.1, &self, files).await
174174
}
@@ -296,7 +296,7 @@ impl CreateInteractionResponseMessage {
296296
flags |= InteractionResponseFlags::EPHEMERAL;
297297
} else {
298298
flags &= !InteractionResponseFlags::EPHEMERAL;
299-
};
299+
}
300300

301301
self.flags = Some(flags);
302302
self

src/builder/create_interaction_response_followup.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ impl CreateInteractionResponseFollowup {
152152
flags |= MessageFlags::EPHEMERAL;
153153
} else {
154154
flags &= !MessageFlags::EPHEMERAL;
155-
};
155+
}
156156

157157
self.flags = Some(flags);
158158
self

src/framework/standard/help_commands.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -920,7 +920,7 @@ fn flatten_group_to_string(
920920
group.prefixes.join("`, `"),
921921
)?;
922922
summary_or_prefixes = true;
923-
};
923+
}
924924

925925
if summary_or_prefixes {
926926
writeln!(group_text)?;
@@ -1254,7 +1254,7 @@ fn single_command_to_plain_string(help_options: &HelpOptions, command: &Command<
12541254

12551255
if let Some(description) = command.description {
12561256
writeln!(result, "**{}**: {description}", help_options.description_label).unwrap();
1257-
};
1257+
}
12581258

12591259
if let Some(usage) = command.usage {
12601260
if let Some(first_prefix) = command.group_prefixes.first() {

src/gateway/bridge/shard_runner.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ impl ShardRunner {
162162
return Ok(());
163163
}
164164
},
165-
};
165+
}
166166
}
167167
},
168168
None => {},

src/model/application/component_interaction.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ impl Serialize for ComponentInteractionDataKind {
325325
Self::MentionableSelect { values } => map.serialize_entry("values", values)?,
326326
Self::ChannelSelect { values } => map.serialize_entry("values", values)?,
327327
Self::Button | Self::Unknown(_) => map.serialize_entry("values", &None::<()>)?,
328-
};
328+
}
329329

330330
map.end()
331331
}

src/model/channel/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ impl serde::Serialize for ForumEmoji {
516516
map.serialize_entry("emoji_id", &None::<()>)?;
517517
map.serialize_entry("emoji_name", name)?;
518518
},
519-
};
519+
}
520520

521521
map.end()
522522
}

src/utils/argument_convert/channel.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ impl ArgumentConvert for Channel {
9898
if !channel_belongs_to_guild(&channel, guild_id) {
9999
return Err(ChannelParseError::NotFoundOrMalformed);
100100
}
101-
};
101+
}
102102

103103
Ok(channel)
104104
}

0 commit comments

Comments
 (0)