mirror of
https://codeberg.org/unspeaker/tengri.git
synced 2026-08-07 22:17:07 +02:00
add missing try_to_u8 in example
This commit is contained in:
parent
d9d6340503
commit
49dcb4f3ba
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ impl Interpret<Tui, Color> for State {
|
||||||
Color::new_g(tail.head()?, try_to_u8)
|
Color::new_g(tail.head()?, try_to_u8)
|
||||||
},
|
},
|
||||||
Some("rgb") if let Some(tail) = expr.tail()? => {
|
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())
|
_ => Err(format!("not a color").into())
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue