state-res: Replace unwraps with expect or errors

This commit is contained in:
Devin Ragotzy
2021-07-15 14:42:34 -04:00
committed by Jonas Platte
parent 01515aea41
commit 318f3186ad
5 changed files with 37 additions and 29 deletions

View File

@@ -46,7 +46,7 @@ fn lexico_topo_sort(c: &mut Criterion) {
};
b.iter(|| {
let _ = StateResolution::lexicographical_topological_sort(&graph, |id| {
(0, MilliSecondsSinceUnixEpoch(uint!(0)), id.clone())
Ok((0, MilliSecondsSinceUnixEpoch(uint!(0)), id.clone()))
});
})
});