Skip to content

Commit

Permalink
Update call_spy_map.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
dead-claudia authored Jun 29, 2024
1 parent 342541f commit 7b7543b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/test_utils/spy/call_spy_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,15 @@ impl<K: PartialEq, I, O> CallSpyMap<K, I, O> {

for state in guard.iter() {
if !state.results.is_empty() {
write!(&mut fail_pairs, "{}{:?} => {:?}", prefix, &state.key, &state.results)
.unwrap();
write!(
&mut fail_pairs,
"{}{:?} => {:?}",
prefix, &state.key, &state.results,
).unwrap();
prefix = ", ";
}
}

drop(guard); // don't poison

if !fail_pairs.is_empty() {
Expand Down

0 comments on commit 7b7543b

Please sign in to comment.