Open dacid44 opened 2 months ago
Actually, it looks like this is a bug in the css-colors
crate. This code panics with the same error:
use css_colors::{rgb, Color};
fn main() {
let weird_color = rgb(255, 131, 43); // #ff832b
let weird_color_hsl = weird_color.to_hsla();
println!("Hello, world!");
}
Unfortunately, I don't think it's likely that that crate is going to be patched anytime soon. The last commit is from 5 years ago, and seems completely dead. Their issue tracker is all old and unanswered stuff too.
that is interesting, thanks for raising this! i suspect you're right. i have a few ideas already for replacing css-colors.
i will have a look into this and see what to do about working around it or fixing it.
When run with
zed.tera
, with a specific color override:whiskers
crashes with the message:Changing the color to something slightly different (e.g.
fe832b
) fixes the error.