mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 22:11:38 +00:00
Switch to BTreeMap in project to make iteration order deterministic
This commit is contained in:
parent
80a8e0e985
commit
ec12ec25f6
2 changed files with 10 additions and 10 deletions
|
|
@ -1,7 +1,7 @@
|
|||
#[macro_use] extern crate lazy_static;
|
||||
|
||||
use std::{
|
||||
collections::HashMap,
|
||||
collections::{HashMap, BTreeMap},
|
||||
path::{Path, PathBuf},
|
||||
};
|
||||
|
||||
|
|
@ -53,7 +53,7 @@ fn single_partition_game() {
|
|||
..Default::default()
|
||||
};
|
||||
|
||||
let mut replicated_storage_children = HashMap::new();
|
||||
let mut replicated_storage_children = BTreeMap::new();
|
||||
replicated_storage_children.insert("Foo".to_string(), foo);
|
||||
|
||||
let replicated_storage = ProjectNode {
|
||||
|
|
@ -73,7 +73,7 @@ fn single_partition_game() {
|
|||
..Default::default()
|
||||
};
|
||||
|
||||
let mut root_children = HashMap::new();
|
||||
let mut root_children = BTreeMap::new();
|
||||
root_children.insert("ReplicatedStorage".to_string(), replicated_storage);
|
||||
root_children.insert("HttpService".to_string(), http_service);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue