diff options
| author | 2024-10-26 09:28:20 -0700 | |
|---|---|---|
| committer | 2024-10-26 09:28:20 -0700 | |
| commit | f3733a811bb020bdffe2090f0391cecc9d976da0 (patch) | |
| tree | 3a4cb649db36b7b01d7f03e8d763d9be454bf8c3 /examples/game_of_life | |
| parent | d660fad33d97cf78507c6797b5fe45b3daf47454 (diff) | |
| download | iced-f3733a811bb020bdffe2090f0391cecc9d976da0.tar.gz iced-f3733a811bb020bdffe2090f0391cecc9d976da0.tar.bz2 iced-f3733a811bb020bdffe2090f0391cecc9d976da0.zip | |
Use float total_cmp instead of partial_cmp to get a total order.
Since Rust version 1.81, sort_by will panic if the provided comparison
function does not implement a total order.
See https://github.com/rust/lang/rust/issues/129561 for more details.
The simplest fix seems to be to use total_cmp instead of partial_cmp.
Diffstat (limited to 'examples/game_of_life')
0 files changed, 0 insertions, 0 deletions
