(mut candidates: Vec<InspectorSession>)
| 4140 | } |
| 4141 | |
| 4142 | fn best_inspector_session(mut candidates: Vec<InspectorSession>) -> Option<InspectorSession> { |
| 4143 | candidates.sort_by_key(inspector_session_score); |
| 4144 | candidates.into_iter().next() |
| 4145 | } |
| 4146 | |
| 4147 | fn inspector_session_score(session: &InspectorSession) -> u8 { |
| 4148 | if session |
no outgoing calls