From 9090361cdf8f624f641573ea4b48f88b82bb3746 Mon Sep 17 00:00:00 2001 From: Bill Thiede Date: Tue, 14 Jul 2020 20:58:29 -0700 Subject: [PATCH] Fixed, this says that func will only borrow the API type passed in. --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 1228bb9..1276fe4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -21,7 +21,7 @@ struct Concrete { count: isize, } -fn func(a: A) { +fn func(a: &mut A) { a.reset(); }