We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9560dd9 commit cf678faCopy full SHA for cf678fa
src/model/channel/channel_id.rs
@@ -55,6 +55,8 @@ impl ChannelId {
55
guild_id: Option<GuildId>,
56
) -> Result<GuildChannel> {
57
#[cfg(feature = "cache")]
58
+ // Ignore clippy, the two `if let`s must be separated
59
+ #[allow(clippy::collapsible_if)]
60
if let Some(cache) = cache_http.cache() {
61
if let Some(guild_id) = guild_id
62
&& let Some(guild) = cache.guild(guild_id)
0 commit comments