Skip to content

Commit 347cb97

Browse files
committed
apply changes from code review
1 parent 1106882 commit 347cb97

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/builder/edit_role.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ impl<'a> EditRole<'a> {
162162
/// [Discord docs](https://discord.com/developers/docs/topics/permissions#role-object-role-colors-object).
163163
#[derive(Clone, Debug, Default, Serialize)]
164164
#[must_use]
165-
#[expect(clippy::struct_field_names)]
165+
#[allow(clippy::struct_field_names)]
166166
pub struct CreateRoleColours {
167167
primary_color: Colour,
168168
#[serde(skip_serializing_if = "Option::is_none")]

src/model/colour.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
/// # fn main() {
2525
/// # let role = from_value::<Role>(json!({
2626
/// # "color": Colour::BLURPLE,
27-
/// "colors": RoleColours::default(),
27+
/// # "colors": RoleColours::default(),
2828
/// # "hoist": false,
2929
/// # "id": RoleId::new(1),
3030
/// # "guild_id": GuildId::new(2),

src/model/user.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,8 +373,8 @@ bitflags! {
373373
pub struct PrimaryGuild {
374374
/// the id of the user's primary guild.
375375
pub identity_guild_id: Option<GuildId>,
376-
// whether the user is displaying the primary guild's server tag. This can be null if the
377-
// system clears the identity, e.g. because the server no longer supports tags.
376+
/// whether the user is displaying the primary guild's server tag. This can be null if the
377+
/// system clears the identity, e.g. because the server no longer supports tags.
378378
pub identity_enabled: Option<bool>,
379379
/// the text of the [`User`]'s server tag.
380380
pub tag: Option<String>,

0 commit comments

Comments
 (0)