Skip to content

Commit

Permalink
fix: dump_json BTreeSet index
Browse files Browse the repository at this point in the history
  • Loading branch information
InioX committed Aug 27, 2024
1 parent 7da3b0a commit 87f7bd9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/util/color.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ pub fn dump_json(schemes: &Schemes, source_color: &Argb, format: &Format) {

let mut colors_normal_light: HashMap<&str, String> = HashMap::new();
let mut colors_normal_dark: HashMap<&str, String> = HashMap::new();

for (field, _color) in &schemes.dark {
let color_light: Rgb = rgb_from_argb(schemes.light[field]);
let color_dark: Rgb = rgb_from_argb(schemes.dark[field]);
for ((field, color_light), (_, color_dark)) in std::iter::zip(&schemes.light, &schemes.dark) {
let color_light: Rgb = rgb_from_argb(*color_light);
let color_dark: Rgb = rgb_from_argb(*color_dark);

colors_normal_light.insert(field, fmt(color_light));
colors_normal_dark.insert(field, fmt(color_dark));
Expand Down

0 comments on commit 87f7bd9

Please sign in to comment.