From f73c3218b9a004fb405386ce2623d2dfa077388c Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 19 Mar 2023 18:06:28 +0100 Subject: fix: allow mocking methods taking &mut self --- examples/generic_method.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'examples/generic_method.rs') diff --git a/examples/generic_method.rs b/examples/generic_method.rs index 995c67d..4262ee2 100644 --- a/examples/generic_method.rs +++ b/examples/generic_method.rs @@ -5,6 +5,8 @@ use ridicule::mock; trait Foo { fn bar(&self, num: u128) -> Baz; + + fn abc(&mut self, baz: Baz); } mock! { @@ -13,6 +15,8 @@ mock! { impl Foo for MockFoo { fn bar(&self, num: u128) -> Baz; + + fn abc(&mut self, baz_baz: Baz); } } -- cgit v1.2.3-18-g5258