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 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/colors.rs') 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)), } } -- cgit v1.2.3