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

Improve API for csv::infer_file_schema by removing redundant ref #1776

Merged
merged 2 commits into from
Jun 2, 2022

Conversation

tustvold
Copy link
Contributor

@tustvold tustvold commented Jun 2, 2022

Which issue does this PR close?

Closes #.

Rationale for this change

The std::io::Read/Write/Seek traits have blanket implementations for &mut T - see here and so there is no reason to force callers to pass in an &mut. In fact it makes for worse ergonomics as it prevents passing in an owned type

What changes are included in this PR?

Removes unnecessary &mut

Are there any user-facing changes?

No

@github-actions github-actions bot added the arrow Changes to the arrow crate label Jun 2, 2022
@nevi-me
Copy link
Contributor

nevi-me commented Jun 2, 2022

This leads to a compile failure :/

@tustvold
Copy link
Contributor Author

tustvold commented Jun 2, 2022

Oops, serves me right for not testing 😆

Now we're just stuck on the fact Github Actions seems to be having some issues....

@tustvold tustvold merged commit 1a64677 into apache:master Jun 2, 2022
@alamb alamb added the api-change Changes to the arrow API label Jun 3, 2022
@alamb alamb changed the title csv::infer_file_schema remove redundant ref Improve API for csv::infer_file_schema by removing redundant ref Jun 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-change Changes to the arrow API arrow Changes to the arrow crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants