diff options
| -rw-r--r-- | src/colors.rs | 6 | ||||
| -rw-r--r-- | 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<Colour> for Colors { - fn into(self) -> Colour { - match self { +impl From<Colors> 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| { |
