mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-03-12 17:36:35 -04:00
fix: make helper fn generic
This commit is contained in:
parent
7cac05a243
commit
a5706e36f4
@ -79,7 +79,7 @@ mod test {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Helper function for HashMap
|
// Helper function for HashMap
|
||||||
fn assert_has_keys_hashmap(map: &HashMap<String, Value>, keys: &[&str]) {
|
fn assert_has_keys_hashmap<T>(map: &HashMap<String, T>, keys: &[&str]) {
|
||||||
for &key in keys {
|
for &key in keys {
|
||||||
assert!(map.contains_key(key), "Key {} is missing", key);
|
assert!(map.contains_key(key), "Key {} is missing", key);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user