You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for your work on this library. I stumbled today into a situation where I'm required to pass a rustforce::Client within a closure inside an async function. The compiler complains that the reference I'm passing doesn't live long enough, but suggests that I use move. However, when I use move, it complains that Clone isn't implemented for Client. I was wondering if having Client not implement Clone was a deliberate design choice, or if perhaps it could be something that we could add to the library.
The text was updated successfully, but these errors were encountered:
I'm pretty new to Rust myself, and I have had issues trying to find the proper way to Clone something. Most of the documentation I find explains that "you need to figure out what cloning means for your type and how to correctly implement it". And while I completely understand the statement and why it works this way, I can't seem to find documentation on how to figure that out.
While I still think that this would increase the usability of this crate, please don't feel any pressure from my part to implement this feature. The project we were working on that used Rust has been cancelled and we're moving on to a different project that doesn't use Rust.
Thank you for your work on this library. I stumbled today into a situation where I'm required to pass a rustforce::Client within a closure inside an async function. The compiler complains that the reference I'm passing doesn't live long enough, but suggests that I use
move
. However, when I usemove
, it complains that Clone isn't implemented for Client. I was wondering if having Client not implement Clone was a deliberate design choice, or if perhaps it could be something that we could add to the library.The text was updated successfully, but these errors were encountered: