From cfe7ce98f1824e890beb0feba3591e457e5a4b79 Mon Sep 17 00:00:00 2001 From: seth Date: Fri, 17 Nov 2023 20:51:58 -0500 Subject: chore: fix clippy warnings --- src/colors.rs | 6 +++--- src/utils.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/colors.rs b/src/colors.rs index b5db8d7..ebd231e 100644 --- a/src/colors.rs +++ b/src/colors.rs @@ -4,9 +4,9 @@ pub enum Colors { Blue, } -impl Into for Colors { - fn into(self) -> Colour { - match self { +impl From for Colour { + fn from(val: Colors) -> Self { + match val { Colors::Blue => Colour::from((136, 199, 253)), } } diff --git a/src/utils.rs b/src/utils.rs index f7f78de..28cacaa 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -60,7 +60,7 @@ pub async fn send_url_as_embed(ctx: Context<'_>, url: String) -> Result<(), Erro .path_segments() .unwrap() .last() - .unwrap_or_else(|| "wie") + .unwrap_or("image") .replace("%20", " "); ctx.send(|c| { -- cgit v1.2.3