Skip to content

Commit

Permalink
Fix clippy warnings on current (serenity-rs#3019)
Browse files Browse the repository at this point in the history
  • Loading branch information
GnomedDev authored Nov 6, 2024
1 parent 59c2450 commit 77ac985
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/framework/standard/help_commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -687,12 +687,12 @@ fn fetch_all_eligible_commands_in_group<'rec, 'a: 'rec>(

/// Fetch groups with their commands.
#[cfg(feature = "cache")]
async fn create_command_group_commands_pair_from_groups<'a>(
async fn create_command_group_commands_pair_from_groups(
ctx: &Context,
msg: &Message,
groups: &[&'static CommandGroup],
owners: &HashSet<UserId, impl std::hash::BuildHasher + Send + Sync>,
help_options: &'a HelpOptions,
help_options: &HelpOptions,
) -> Vec<GroupCommandsPair> {
let mut listed_groups: Vec<GroupCommandsPair> = Vec::default();

Expand Down
4 changes: 2 additions & 2 deletions src/model/guild/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -948,10 +948,10 @@ impl Guild {
/// lacks permission. Otherwise returns [`Error::Http`], as well as if invalid data is given.
///
/// [Create Guild Expressions]: Permissions::CREATE_GUILD_EXPRESSIONS
pub async fn create_sticker<'a>(
pub async fn create_sticker(
&self,
cache_http: impl CacheHttp,
builder: CreateSticker<'a>,
builder: CreateSticker<'_>,
) -> Result<Sticker> {
self.id.create_sticker(cache_http.http(), builder).await
}
Expand Down
4 changes: 2 additions & 2 deletions src/model/guild/partial_guild.rs
Original file line number Diff line number Diff line change
Expand Up @@ -648,10 +648,10 @@ impl PartialGuild {
/// lacks permission. Otherwise returns [`Error::Http`], as well as if invalid data is given.
///
/// [Create Guild Expressions]: Permissions::CREATE_GUILD_EXPRESSIONS
pub async fn create_sticker<'a>(
pub async fn create_sticker(
&self,
cache_http: impl CacheHttp,
builder: CreateSticker<'a>,
builder: CreateSticker<'_>,
) -> Result<Sticker> {
self.id.create_sticker(cache_http, builder).await
}
Expand Down

0 comments on commit 77ac985

Please sign in to comment.