Remove unnecessary usize -> u32 cast
This commit is contained in:
parent
dcbc2753c4
commit
8dd299ed3d
|
@ -205,9 +205,9 @@ fn embed(ctx: &mut Context, message: &Message, args: Args) -> CommandResult {
|
|||
}
|
||||
|
||||
e.color(Colour::new(
|
||||
usize::from_str_radix(&input_embed.colour, 16)
|
||||
u32::from_str_radix(&input_embed.colour, 16)
|
||||
.ok()
|
||||
.unwrap_or(0x000000) as u32,
|
||||
.unwrap_or(0x000000),
|
||||
));
|
||||
// Set embed description unless empty
|
||||
if input_embed.description != None {
|
||||
|
|
Loading…
Reference in New Issue