From f46a9d7c241b0603a855fca9e67358b2349fd8f0 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 12 Mar 2023 21:01:10 +0100 Subject: fix: remove need for where clause workaround --- examples/simple.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'examples') diff --git a/examples/simple.rs b/examples/simple.rs index a0a5860..a5b7203 100644 --- a/examples/simple.rs +++ b/examples/simple.rs @@ -15,7 +15,7 @@ trait Foo fn baz(&self, name: &str, foobar: Foobar) where - Foobar: SomeFoobar; + Foobar: SomeFoobar + Debug; } mock! { @@ -27,9 +27,8 @@ mock! { fn biz(self: (&Self), fiz: Fiz) -> &Bar; fn baz(self: (&Self), name: &str, foobar: Foobar) - where ( - Foobar: SomeFoobar - ); + where + Foobar: SomeFoobar + Debug; } } -- cgit v1.2.3-18-g5258