-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PickList requires Copy trait, severely limiting its use #572
Comments
Have a look at #467 - basically just have the |
Thanks for the suggestion. Pardon me if I'm not following along, but how would one pass state into a Display implementation without storing it in the struct or using a global? |
We may be able to accept a reference as the third argument. I'll look into it! For the time being, you should be able to circumvent the issue with an explicit clone: |
Thanks, it was silly of me to not try that! |
I have something like this:
This does not work because the third parameter to
PickList::new()
takes anOption<T>
and requiresCopy
to be implemented. This prevents any type that implementsString
from being used withPickList
, which is highly limiting.The text was updated successfully, but these errors were encountered: