We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This comparison function is broken.
According to it, these two statements are true at the same time:
(11, 0.0) < (14, 0.0)
(14, 0.0) < (11, 0.0)
The vector will be sorted in a totally unreliable order. See this issue and the fix suggested by @bluss: rust-lang/rust#38685
The text was updated successfully, but these errors were encountered:
f76268c
Thank you for finding this! Fixed.
Sorry, something went wrong.
Glad this got fixed! Just a quick note - you can simplify compare_channels_load a bit... :)
compare_channels_load
fn compare_channels_load(a: &ChannelLoad, b: &ChannelLoad) -> cmp::Ordering { (&a.1, &a.0).partial_cmp(&(&b.1, &b.0)).unwrap() }
No branches or pull requests
This comparison function is broken.
According to it, these two statements are true at the same time:
(11, 0.0) < (14, 0.0)
(14, 0.0) < (11, 0.0)
The vector will be sorted in a totally unreliable order.
See this issue and the fix suggested by @bluss: rust-lang/rust#38685
The text was updated successfully, but these errors were encountered: