You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thread 'main' panicked at /home/dacid44/.cargo/registry/src/index.crates.io-6f17d22bba15001f/css-colors-1.0.1/src/ratio.rs:38:9:
Invalid ratio for type f32
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Changing the color to something slightly different (e.g. fe832b) fixes the error.
The text was updated successfully, but these errors were encountered:
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};fnmain(){let weird_color = rgb(255,131,43);// #ff832blet 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.
When run with
zed.tera
, with a specific color override:whiskers zed.tera -o json --color-overrides '{"all": {"text": "ff832b"}}'
whiskers
crashes with the message:Changing the color to something slightly different (e.g.
fe832b
) fixes the error.The text was updated successfully, but these errors were encountered: