Skip to content

Commit

Permalink
Correct a warning about deprecated function
Browse files Browse the repository at this point in the history
  • Loading branch information
Rémi Lauzier authored and mina86 committed Jun 20, 2021
1 parent 2a8c356 commit f18d147
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/ansi256.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ fn best_grey(y: u8) -> u8 {
.enumerate()
.map(|(idx, v)| (*v, idx as u8 * (36 + 6 + 1) + 16))
.chain((0..24u8).map(|idx| (idx * 10 + 8, idx + 232)))
.fold((std::f32::INFINITY, 0), |best, elem| {
.fold((f32::INFINITY, 0), |best, elem| {
let d = delta_e::DE2000::from_rgb(&grey, &[elem.0, elem.0, elem.0]);
if d < best.0 {
(d, elem.1)
Expand Down

0 comments on commit f18d147

Please sign in to comment.