From 8dd299ed3dfc22c72e1d22000888585c1adc5417 Mon Sep 17 00:00:00 2001 From: Agatha Date: Sun, 29 Mar 2020 04:01:19 +0300 Subject: [PATCH] Remove unnecessary usize -> u32 cast --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index c773b33..66df499 100755 --- a/src/main.rs +++ b/src/main.rs @@ -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 {