Skip to content

Commit 9a0067c

Browse files
committed
Fix Clippy
1 parent 73bc9c5 commit 9a0067c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/model/channel/channel_id.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ impl ChannelId {
5656
) -> Result<GuildChannel> {
5757
#[cfg(feature = "cache")]
5858
// Ignore clippy, the two `if let`s must be separated
59-
#[allow(clippy::collapsible_if)]
59+
#[expect(clippy::collapsible_if)]
6060
if let Some(cache) = cache_http.cache() {
6161
if let Some(guild_id) = guild_id
6262
&& let Some(guild) = cache.guild(guild_id)

src/model/channel/thread.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ impl ThreadId {
3434
) -> Result<GuildThread> {
3535
#[cfg(feature = "cache")]
3636
// Ignore clippy, the two `if let`s must be separated
37-
#[allow(clippy::collapsible_if)]
37+
#[expect(clippy::collapsible_if)]
3838
if let Some(cache) = cache_http.cache() {
3939
if let Some(guild_id) = guild_id
4040
&& let Some(guild) = cache.guild(guild_id)

0 commit comments

Comments
 (0)