Skip to content
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

feat(rust)!: Import NamedFrom in df! macro #14860

Merged

Conversation

mickvangelderen
Copy link
Contributor

Series::new is not implemented on Series. This method is provided by NamedFrom most of the time. This change makes df! explicitly use the NamedFrom::new implementation, potentially causing a breaking change if someone had defined another trait that provides a new method to construct a Series.

@github-actions github-actions bot added breaking Change that breaks backwards compatibility enhancement New feature or an improvement of an existing feature rust Related to Rust Polars labels Mar 5, 2024
`Series::new` is not implemented on `Series`. This method is provided by
`NamedFrom` most of the time. This change makes `df!` explicitly use the
NamedFrom::new implementation, potentially causing a breaking change if
someone had defined another trait that provides a `new` method to
construct a `Series`.
Copy link
Member

@ritchie46 ritchie46 left a comment

Choose a reason for hiding this comment

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

Good one. That's proper macro hygiene.

Can you undraft?

@mickvangelderen mickvangelderen marked this pull request as ready for review March 6, 2024 07:57
@mickvangelderen
Copy link
Contributor Author

Good one. That's proper macro hygiene.

Can you undraft?

Done!

@mickvangelderen mickvangelderen merged commit 6a244ef into pola-rs:main Mar 6, 2024
18 checks passed
@c-peters c-peters added the accepted Ready for implementation label Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted Ready for implementation breaking Change that breaks backwards compatibility enhancement New feature or an improvement of an existing feature rust Related to Rust Polars
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants