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

Simplify read paths #898

Merged
merged 1 commit into from
Nov 22, 2022
Merged

Simplify read paths #898

merged 1 commit into from
Nov 22, 2022

Conversation

cgwalters
Copy link
Member

Use the std::fs functions to read to a string or Vec<u8> directly; it's more efficient and less code.

Also in one place use .map(BufReader::new) which I find more... readable.

Not prep for anything, just a drive-by change since I was reading the code for other reasons.

Use the `std::fs` functions to read to a string or `Vec<u8>` directly;
it's more efficient and less code.

Also in one place use `.map(BufReader::new)` which I find more...
readable.

Not prep for anything, just a drive-by change since I was
reading the code for other reasons.
@lucab lucab added this to the vNext milestone Nov 22, 2022
@lucab lucab enabled auto-merge November 22, 2022 07:46
@lucab lucab merged commit 9c7294a into coreos:main Nov 22, 2022
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