From c163ac005bf3f847ee309427a92098b81aa10bb0 Mon Sep 17 00:00:00 2001 From: Miguel Piedrafita Date: Thu, 31 Aug 2023 09:44:10 +0100 Subject: [PATCH] fix another borrow issue --- ensemble_derive/src/model/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ensemble_derive/src/model/mod.rs b/ensemble_derive/src/model/mod.rs index ac18ca6..1350ff9 100644 --- a/ensemble_derive/src/model/mod.rs +++ b/ensemble_derive/src/model/mod.rs @@ -127,7 +127,7 @@ fn impl_fresh(primary_key: &Field) -> TokenStream { quote! { async fn fresh(&self) -> Result { - Self::find(self.#ident).await + Self::find(self.#ident.clone()).await } } }