Skip to content

Commit

Permalink
Use BTreeMap in field PkgMeta::overrides (rust-lang#324) instead …
Browse files Browse the repository at this point in the history
…of `HashMap`.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
  • Loading branch information
NobodyXu committed Aug 27, 2022
1 parent 7f9ad61 commit f973d32
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/lib/src/manifests/cargo_toml_binstall.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//!
//! This manifest defines how a particular binary crate may be installed by Binstall.

use std::collections::HashMap;
use std::collections::BTreeMap;

use serde::{Deserialize, Serialize};

Expand Down Expand Up @@ -42,7 +42,7 @@ pub struct PkgMeta {
pub pub_key: Option<String>,

/// Target specific overrides
pub overrides: HashMap<String, PkgOverride>,
pub overrides: BTreeMap<String, PkgOverride>,
}

impl Default for PkgMeta {
Expand All @@ -52,7 +52,7 @@ impl Default for PkgMeta {
pkg_fmt: None,
bin_dir: DEFAULT_BIN_DIR.to_string(),
pub_key: None,
overrides: HashMap::new(),
overrides: BTreeMap::new(),
}
}
}
Expand All @@ -64,7 +64,7 @@ impl PkgMeta {
pkg_fmt: self.pkg_fmt,
bin_dir: self.bin_dir.clone(),
pub_key: self.pub_key.clone(),
overrides: HashMap::new(),
overrides: BTreeMap::new(),
}
}

Expand Down

0 comments on commit f973d32

Please sign in to comment.