From 1facc9fc116e3aeeacfb7ce2b3ef252eb79554cc Mon Sep 17 00:00:00 2001 From: Mikayla Date: Tue, 23 Jan 2024 21:38:16 -0800 Subject: [PATCH] Fix test error --- crates/theme/src/styles/colors.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/theme/src/styles/colors.rs b/crates/theme/src/styles/colors.rs index a01e73f5ef..b830d19fee 100644 --- a/crates/theme/src/styles/colors.rs +++ b/crates/theme/src/styles/colors.rs @@ -261,7 +261,7 @@ mod tests { fn override_a_single_theme_color() { let mut colors = ThemeColors::light(); - let magenta: Hsla = gpui::rgb(0xff00ff); + let magenta: Hsla = gpui::rgb(0xff00ff).into(); assert_ne!(colors.text, magenta); @@ -279,8 +279,8 @@ mod tests { fn override_multiple_theme_colors() { let mut colors = ThemeColors::light(); - let magenta: Hsla = gpui::rgb(0xff00ff); - let green: Hsla = gpui::rgb(0x00ff00); + let magenta: Hsla = gpui::rgb(0xff00ff).into(); + let green: Hsla = gpui::rgb(0x00ff00).into(); assert_ne!(colors.text, magenta); assert_ne!(colors.background, green); @@ -305,7 +305,7 @@ mod tests { })) .unwrap(); - assert_eq!(colors.background, Some(gpui::rgb(0xff00ff))); - assert_eq!(colors.text, Some(gpui::rgb(0xff0000))); + assert_eq!(colors.background, Some(gpui::rgb(0xff00ff).into())); + assert_eq!(colors.text, Some(gpui::rgb(0xff0000).into())); } }