Skip to content

Commit 77ac985

Browse files
authored
Fix clippy warnings on current (#3019)
1 parent 59c2450 commit 77ac985

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/framework/standard/help_commands.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -687,12 +687,12 @@ fn fetch_all_eligible_commands_in_group<'rec, 'a: 'rec>(
687687

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

src/model/guild/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -948,10 +948,10 @@ impl Guild {
948948
/// lacks permission. Otherwise returns [`Error::Http`], as well as if invalid data is given.
949949
///
950950
/// [Create Guild Expressions]: Permissions::CREATE_GUILD_EXPRESSIONS
951-
pub async fn create_sticker<'a>(
951+
pub async fn create_sticker(
952952
&self,
953953
cache_http: impl CacheHttp,
954-
builder: CreateSticker<'a>,
954+
builder: CreateSticker<'_>,
955955
) -> Result<Sticker> {
956956
self.id.create_sticker(cache_http.http(), builder).await
957957
}

src/model/guild/partial_guild.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -648,10 +648,10 @@ impl PartialGuild {
648648
/// lacks permission. Otherwise returns [`Error::Http`], as well as if invalid data is given.
649649
///
650650
/// [Create Guild Expressions]: Permissions::CREATE_GUILD_EXPRESSIONS
651-
pub async fn create_sticker<'a>(
651+
pub async fn create_sticker(
652652
&self,
653653
cache_http: impl CacheHttp,
654-
builder: CreateSticker<'a>,
654+
builder: CreateSticker<'_>,
655655
) -> Result<Sticker> {
656656
self.id.create_sticker(cache_http, builder).await
657657
}

0 commit comments

Comments
 (0)