Skip to content

Commit eefd337

Browse files
committed
Use BTreeMap in test code
Instead of `HashMap` we can use a `BTreeMap` in unit test code, the functionality is exactly the same although `BTreeMap` does not have a `with_capacity` constructor.
1 parent 13b9ec9 commit eefd337

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/descriptor/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1501,7 +1501,7 @@ mod tests {
15011501
witness: Witness::default(),
15021502
};
15031503
let satisfier = {
1504-
let mut satisfier = HashMap::with_capacity(2);
1504+
let mut satisfier = BTreeMap::new();
15051505

15061506
satisfier.insert(
15071507
a,

0 commit comments

Comments
 (0)