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 0c7f0ca commit 457d53a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test_utils/spy/call_spy_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use crate::prelude::*;
use std::collections::VecDeque;

#[derive(Debug)]
struct SpyState<I, O> {
struct SpyState<K, I, O> {
key: K,
args: Vec<I>,
results: VecDeque<O>,
Expand Down Expand Up @@ -97,7 +97,7 @@ impl<K: PartialEq, I, O> CallSpyMap<K, I, O> {
{
let mut expected_map = Vec::<(&K, Vec<&I>)>::new();

'outer: for (key, value) in expected {
'outer: for (key, value) in expected.iter() {
for (k, v) of expected_map.iter_mut() {
if k == key {
v.push(value);
Expand Down

0 comments on commit 457d53a

Please sign in to comment.