Skip to content

Conversation

mzgubic
Copy link
Member

@mzgubic mzgubic commented Jan 15, 2021

Currently the user has to define a to_vec function for every new struct. This PR adds a fallback for structs.

Thanks @willtebbutt for the implementation, I've just added a line to check against structs with no fieldnames (Strings and singleton types for example). I couldn't think of anything else messing this up, but I'll have another think about it on Monday.

Copy link
Member

@wesselb wesselb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM.

@mzgubic
Copy link
Member Author

mzgubic commented Jan 18, 2021

We don't mind the Nightly Julia tests failing right? It looks like there are some inference issues

@wesselb
Copy link
Member

wesselb commented Jan 18, 2021

I don't think we do, but I'm not sure. IIRC the Julia nightlies have been failing for some time now on this error.

@mzgubic mzgubic merged commit d39d622 into master Jan 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants