Skip to content

Commit

Permalink
Use BTreeMap over HashMap
Browse files Browse the repository at this point in the history
  • Loading branch information
coolreader18 committed Sep 2, 2020
1 parent a282fb5 commit d5ee08c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ async fn try_main() -> anyhow::Result<()> {
Ok::<_, anyhow::Error>(runner)
};
let (r1, r2) = tokio::try_join!(get_runner(&robot1), get_runner(&robot2))?;
let runners = maplit::hashmap! {
let runners = maplit::btreemap! {
logic::Team::Blue => r1,
logic::Team::Red => r2,
};
Expand Down
2 changes: 1 addition & 1 deletion src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ async fn run(
.map(|res| res.unwrap_or_else(|err| Err(logic::ProgramError::IO(err.to_string()))))
};
let (r1, r2) = tokio::join!(make_runner(&r1), make_runner(&r2));
let runners = maplit::hashmap! {
let runners = maplit::btreemap! {
logic::Team::Blue => r1,
logic::Team::Red => r2,
};
Expand Down

0 comments on commit d5ee08c

Please sign in to comment.