We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f73ba3 commit 1f1e11aCopy full SHA for 1f1e11a
src/mediancut.rs
@@ -103,7 +103,7 @@ impl<'hist> MBox<'hist> {
103
ChanVariance { chan: 2, variance: vars[2] },
104
ChanVariance { chan: 3, variance: vars[3] },
105
];
106
- channels.sort_by_key(|a| Reverse(OrdFloat::new(a.variance)));
+ channels.sort_unstable_by_key(|a| Reverse(OrdFloat::new(a.variance)));
107
108
for a in self.colors.iter_mut() {
109
let chans: [f32; 4] = rgb::bytemuck::cast(a.color.0);
0 commit comments