From 49dcb4f3ba7b131205a7ee95a5c38e2f9cd8a4c5 Mon Sep 17 00:00:00 2001 From: facile pop culture reference Date: Thu, 30 Jul 2026 14:51:25 +0300 Subject: [PATCH] add missing try_to_u8 in example --- examples/mode_01.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/mode_01.rs b/examples/mode_01.rs index 18a9dae..39031c4 100644 --- a/examples/mode_01.rs +++ b/examples/mode_01.rs @@ -38,7 +38,7 @@ impl Interpret for State { Color::new_g(tail.head()?, try_to_u8) }, Some("rgb") if let Some(tail) = expr.tail()? => { - Color::new_rgb(tail.head()?) + Color::new_rgb(tail.head()?, try_to_u8) }, _ => Err(format!("not a color").into()) }