diff options
| author | seth <[email protected]> | 2023-11-17 20:51:58 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-11-18 01:54:52 +0000 |
| commit | cfe7ce98f1824e890beb0feba3591e457e5a4b79 (patch) | |
| tree | d4c5995db3e3e23711228e05c734471620726b31 /src | |
| parent | a14e362054c6c96ff840c7297e8b575e83f60029 (diff) | |
chore: fix clippy warnings
Diffstat (limited to 'src')
| -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| { |
