Files
Aether/crates/aether-scheduler-core/src/ranking/format.rs

13 lines
343 B
Rust
Raw Normal View History

2026-04-27 12:34:03 +08:00
use std::cmp::Ordering;
use super::types::SchedulerRankableCandidate;
2026-04-27 16:05:00 +08:00
pub(super) fn compare_format_state(
2026-04-27 12:34:03 +08:00
left: &SchedulerRankableCandidate,
right: &SchedulerRankableCandidate,
) -> Ordering {
left.demote_cross_format
.cmp(&right.demote_cross_format)
.then(left.format_preference.cmp(&right.format_preference))
}