-
Notifications
You must be signed in to change notification settings - Fork 35
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
Vec<Vec<(String, usize)>>
panics with unsatisfied trait bounds
#105
Comments
This is a bug in Magnus, looks like I forgot to implement
impl<T> IntoValue for Vec<T>
where
T: IntoValueFromNative,
{
...
}
I don't have time to do it right now, but I'll try and get a patch release out this evening with a fix. |
I see, makes sense. Thank you for the explanation and for such a swift response. I have some time right now so I will try to do it myself, if I do I'll ping you on a pr. Otherwise feel free to fix 👍 upd: here's the pr, let me know if I should add any tests for this or anything, but I built it on my machine and tried it out with my use case and all was fine(with more nested vecs too, makes sense 😅) |
I've put out a 0.6.3 release with this fix. |
Hi everyone. Probably a stupid question but I'm getting this error when trying to return
Vec<Vec<(String, usize)>>
from a function and then define it as a singleton method:which in my very limited experience meant that there's no way to implicitly transform this rust type into ruby type(might be wrong, please correct me). So I was wondering why does
Vec<(String, usize)>
is ok but this one is not?The text was updated successfully, but these errors were encountered: