Skip to content

Commit

Permalink
fix another borrow issue
Browse files Browse the repository at this point in the history
  • Loading branch information
m1guelpf committed Aug 31, 2023
1 parent 0f77adb commit c163ac0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ensemble_derive/src/model/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ fn impl_fresh(primary_key: &Field) -> TokenStream {

quote! {
async fn fresh(&self) -> Result<Self, ::ensemble::query::Error> {
Self::find(self.#ident).await
Self::find(self.#ident.clone()).await
}
}
}
Expand Down

0 comments on commit c163ac0

Please sign in to comment.