Skip to content

Commit f51fc46

Browse files
committed
Use BTreeMap rather than HashMap in markup5ever build script
Signed-off-by: Nico Burns <[email protected]>
1 parent 0e4e125 commit f51fc46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

markup5ever/build.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
extern crate phf_codegen;
1111
extern crate string_cache_codegen;
1212

13-
use std::collections::HashMap;
13+
use std::collections::BTreeMap;
1414
use std::env;
1515
use std::fs::File;
1616
use std::io::{BufRead, BufReader, BufWriter, Write};
@@ -79,7 +79,7 @@ fn main() {
7979
}
8080

8181
fn named_entities_to_phf(to: &Path) {
82-
let mut entities: HashMap<&str, (u32, u32)> = entities::NAMED_ENTITIES
82+
let mut entities: BTreeMap<&str, (u32, u32)> = entities::NAMED_ENTITIES
8383
.iter()
8484
.map(|(name, cp1, cp2)| {
8585
assert!(name.starts_with('&'));

0 commit comments

Comments
 (0)