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

Take owned Read and Write #12909

Merged
merged 1 commit into from
May 20, 2024
Merged

Conversation

IanManske
Copy link
Member

Description

As @YizhePKU pointed out, the Rust API guidelines recommend that generic functions take readers and writers by value and not by reference. This PR changes copy_with_interupt and few other places to take owned Read and Write instead of mutable references.

Copy link
Member

@sholderbach sholderbach left a comment

Choose a reason for hiding this comment

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

Sounds good to me

@sholderbach sholderbach merged commit c98960d into nushell:main May 20, 2024
15 checks passed
@hustcer hustcer added this to the v0.94.0 milestone May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants