Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
arqunis committed Feb 2, 2025
1 parent f0072d1 commit e37d7b8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/builder/edit_guild_welcome_screen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ impl<'a> CreateGuildWelcomeChannel<'a> {
self.emoji_id = None;
self.emoji_name = Some(name.into());
},
};
}

self
}
Expand Down
2 changes: 1 addition & 1 deletion src/http/ratelimiting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ impl Ratelimiter {

if let Ok(Some(delay_time)) = delay_time {
sleep(delay_time).await;
};
}

delay_time.map(|d| d.is_some())
};
Expand Down
3 changes: 2 additions & 1 deletion src/model/mention.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,12 @@ impl ToArrayString for Mention {

fn to_arraystring(self) -> Self::ArrayString {
let mut out = Self::ArrayString::new();

match self {
Self::Channel(id) => aformat_into!(out, "<#{id}>"),
Self::Role(id) => aformat_into!(out, "<@&{id}>"),
Self::User(id) => aformat_into!(out, "<@{id}>"),
};
}

out
}
Expand Down

0 comments on commit e37d7b8

Please sign in to comment.