Skip to content

Commit cf678fa

Browse files
Update src/model/channel/channel_id.rs
Co-authored-by: Alex M. M. <[email protected]>
1 parent 9560dd9 commit cf678fa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/model/channel/channel_id.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ impl ChannelId {
5555
guild_id: Option<GuildId>,
5656
) -> Result<GuildChannel> {
5757
#[cfg(feature = "cache")]
58+
// Ignore clippy, the two `if let`s must be separated
59+
#[allow(clippy::collapsible_if)]
5860
if let Some(cache) = cache_http.cache() {
5961
if let Some(guild_id) = guild_id
6062
&& let Some(guild) = cache.guild(guild_id)

0 commit comments

Comments
 (0)