-
Notifications
You must be signed in to change notification settings - Fork 18
Closed
Description
Code does not compile, because of:
russcip/examples/bin_packing.rs
Lines 325 to 331 in 044cbcc
| // find the pair with the largest fractional value | |
| let pair = pair_vals | |
| .iter() | |
| .filter(|(_, &val)| val.fract() > model.eps() && val < 1.0 - model.eps()) | |
| .max_by(|a, b| a.1.partial_cmp(b.1).unwrap()) | |
| .unwrap() | |
| .0; |
Within the filter function call, the reference pattern needs to be made explicit. More here.
Thought this could be a simple first contribution for me! :)
Metadata
Metadata
Assignees
Labels
No labels