Skip to content

Commit a4f1917

Browse files
Update thread.rs
1 parent cf678fa commit a4f1917

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/model/channel/thread.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ impl ThreadId {
3333
guild_id: Option<GuildId>,
3434
) -> Result<GuildThread> {
3535
#[cfg(feature = "cache")]
36+
// Ignore clippy, the two `if let`s must be separated
37+
#[allow(clippy::collapsible_if)]
3638
if let Some(cache) = cache_http.cache() {
3739
if let Some(guild_id) = guild_id
3840
&& let Some(guild) = cache.guild(guild_id)

0 commit comments

Comments
 (0)