diff options
author | HampusM <hampus@hampusmat.com> | 2023-03-19 18:06:28 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2023-03-19 18:06:28 +0100 |
commit | f73c3218b9a004fb405386ce2623d2dfa077388c (patch) | |
tree | 5e8a43741ac00e7f265e45d64fa3d1afdfe367f6 /macros/src/mock.rs | |
parent | ad2a6d1dc517407939ed022bba9f3352efc678ce (diff) |
fix: allow mocking methods taking &mut self
Diffstat (limited to 'macros/src/mock.rs')
-rw-r--r-- | macros/src/mock.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/macros/src/mock.rs b/macros/src/mock.rs index d2eb451..2ac27e5 100644 --- a/macros/src/mock.rs +++ b/macros/src/mock.rs @@ -247,7 +247,7 @@ fn create_mock_function( )) .with_generic_params::<#(#type_param_idents,)*>(); - expectation.call_returning(#(#args),*) + (expectation.get_returning())(#(#args),*) } }) .unwrap_or_abort(), |