From 9ab8c8eb0a4cf01209e96f289657bdc8cf5ef19a Mon Sep 17 00:00:00 2001 From: TheRealLorenz Date: Fri, 9 Feb 2024 13:53:55 +0100 Subject: [PATCH] [fix] broken test --- tests/tests.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/tests/tests.rs b/tests/tests.rs index 2eef0c0..65b25f9 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -46,13 +46,10 @@ fn test_unicode() { #[test] fn test_ascii_rgb() { let bytes: Vec = b"\x1b[38;2;100;100;100mAAABBB".to_vec(); - let output = Ok(Text::styled( + let output = Ok(Text::from(Span::styled( "AAABBB", - Style { - fg: Some(Color::Rgb(100, 100, 100)), - ..Default::default() - }, - )); + Style::default().fg(Color::Rgb(100, 100, 100)), + ))); assert_eq!(bytes.into_text(), output); }