Skip to content

Commit

Permalink
Use BTreeMap rather than HashMap in markup5ever build script
Browse files Browse the repository at this point in the history
Signed-off-by: Nico Burns <[email protected]>
  • Loading branch information
nicoburns committed Feb 20, 2025
1 parent b329303 commit 23c2f55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions markup5ever/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
extern crate phf_codegen;
extern crate string_cache_codegen;

use std::collections::HashMap;
use std::collections::BTreeMap;
use std::env;
use std::fs::File;
use std::io::{BufRead, BufReader, BufWriter, Write};
Expand Down Expand Up @@ -79,7 +79,7 @@ fn main() {
}

fn named_entities_to_phf(to: &Path) {
let mut entities: HashMap<&str, (u32, u32)> = entities::NAMED_ENTITIES
let mut entities: BTreeMap<&str, (u32, u32)> = entities::NAMED_ENTITIES
.iter()
.map(|(name, cp1, cp2)| {
assert!(name.starts_with('&'));
Expand Down

0 comments on commit 23c2f55

Please sign in to comment.