Skip to content

Commit

Permalink
Fixed cargo fmt errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton A. Truttse authored and havarnov committed Jan 15, 2024
1 parent 91f41fb commit 4289cbc
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1463,7 +1463,13 @@ mod tests {

#[test]
fn test_from_vec_iterator() {
let vals: Vec<(&str, Vec<i64>)> = vec![("foo", vec![123, 456]), ("bar", vec![234]), ("foobar", vec![567, 678, 789]), ("bar", vec![12, 23, 34])];
let vals: Vec<(&str, Vec<i64>)> = vec![
("foo", vec![123, 456]),
("bar", vec![234]),
("foobar", vec![567, 678, 789]),
("bar", vec![12, 23, 34]),
];

let multimap: MultiMap<&str, i64> = MultiMap::from_iter(vals);

let foo_vals: &Vec<i64> = multimap.get_vec("foo").unwrap();
Expand All @@ -1476,11 +1482,11 @@ mod tests {
assert!(bar_vals.contains(&23));
assert!(bar_vals.contains(&34));

let bar_vals: &Vec<i64> = multimap.get_vec("foobar").unwrap();
assert!(bar_vals.contains(&567));
assert!(bar_vals.contains(&678));
assert!(bar_vals.contains(&789));
}
let foobar_vals: &Vec<i64> = multimap.get_vec("foobar").unwrap();
assert!(foobar_vals.contains(&567));
assert!(foobar_vals.contains(&678));
assert!(foobar_vals.contains(&789));
}

#[test]
fn test_extend_consuming_hashmap() {
Expand Down

0 comments on commit 4289cbc

Please sign in to comment.