Commit ccbff59
committed
feat: refactor min_max to utilize choose_min_max for improved internal matching
- Removed the call to min_max_scalar within min_max function.
- Implemented internal matching using choose_min_max!($OP).
- Updated return values to provide Ok with min or max based on Ordering result.
- Added unreachable!() for Ordering::Equal case for error handling.1 parent bca94be commit ccbff59
1 file changed
Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
144 | 156 | | |
145 | 157 | | |
146 | 158 | | |
| |||
464 | 476 | | |
465 | 477 | | |
466 | 478 | | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | 479 | | |
472 | 480 | | |
473 | 481 | | |
| |||
0 commit comments