diff options
| author | Hugo van der Wijst <hvanderwijst@tesla.com> | 2019-01-15 22:42:50 -0800 |
|---|---|---|
| committer | Jorge Aparicio <jorge@japaric.io> | 2019-02-16 00:22:22 +0100 |
| commit | 2f89688ca974944781878a74873801597c0b1f11 (patch) | |
| tree | e837ee30f5ccdfaa62c83791fd4544f6f861b2f3 /macros/src/analyze.rs | |
| parent | fdba26525c4a190d0275dd3b5f3a154fa189a799 (diff) | |
Make builds reproducible
This is done by using `BTreeMap`s and `BTreeSet`s to get deterministic
ordering.
Also updated the CI job to check reproducibility of all examples.
Diffstat (limited to 'macros/src/analyze.rs')
| -rw-r--r-- | macros/src/analyze.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/macros/src/analyze.rs b/macros/src/analyze.rs index 19575b7..cfd8ebc 100644 --- a/macros/src/analyze.rs +++ b/macros/src/analyze.rs @@ -1,6 +1,6 @@ use std::{ cmp, - collections::{HashMap, HashSet}, + collections::{BTreeMap, HashMap, HashSet}, }; use syn::{Attribute, Ident, Type}; @@ -65,7 +65,7 @@ pub struct Dispatcher { } /// Priority -> Dispatcher -pub type Dispatchers = HashMap<u8, Dispatcher>; +pub type Dispatchers = BTreeMap<u8, Dispatcher>; pub type Capacities = HashMap<Ident, u8>; |
