File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff 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) ]
166166pub struct CreateRoleColours {
167167 primary_color : Colour ,
168168 #[ serde( skip_serializing_if = "Option::is_none" ) ]
Original file line number Diff line number Diff line change 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),
Original file line number Diff line number Diff line change @@ -373,8 +373,8 @@ bitflags! {
373373pub 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 > ,
You can’t perform that action at this time.
0 commit comments