Remove unnecessary usize -> u32 cast

This commit is contained in:
Agatha 2020-03-29 04:01:19 +03:00
parent 9b1990c084
commit e4c282d970
1 changed files with 2 additions and 2 deletions

View File

@ -205,9 +205,9 @@ fn embed(ctx: &mut Context, message: &Message, args: Args) -> CommandResult {
} }
e.color(Colour::new( e.color(Colour::new(
usize::from_str_radix(&input_embed.colour, 16) u32::from_str_radix(&input_embed.colour, 16)
.ok() .ok()
.unwrap_or(0x000000) as u32, .unwrap_or(0x000000),
)); ));
// Set embed description unless empty // Set embed description unless empty
if input_embed.description != None { if input_embed.description != None {