Remove unnecessary usize -> u32 cast
This commit is contained in:
parent
9b1990c084
commit
e4c282d970
|
@ -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