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

Replace deprecated usage of rand crate with mktemp #5562

Merged
merged 1 commit into from
Sep 5, 2018

Conversation

baumanj
Copy link
Contributor

@baumanj baumanj commented Sep 5, 2018

This replaces #5511 since that one got messy with the intervening changes to Cargo.lock.

This is more concise and has the benefit of cleaning up afterwards if there is
an error before the temporary file is renamed.

Also, since we implemented io:Error -> error:Error::IO, simplify some of the
lines that used map_err previously.

This is more concise and has the benefit of cleaning up afterwards if there is
an error before the temporary file is renamed.

Also, since we implemented io:Error -> error:Error::IO, simplify some of the
lines that used map_err previously.

Signed-off-by: Jon Bauman <5906042+baumanj@users.noreply.github.com>
@thesentinels
Copy link
Contributor

Thanks for the pull request! Here is what will happen next:

  1. Your PR will be reviewed by the maintainers
  2. If everything looks good, one of them will approve it, and your PR will be merged.

Thank you for contributing!

Copy link
Contributor

@christophermaier christophermaier left a comment

Choose a reason for hiding this comment

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

tenor-75983462

@raskchanky
Copy link
Contributor

@raskchanky raskchanky merged commit e43e726 into master Sep 5, 2018
@raskchanky raskchanky deleted the replace-rand-with-mktemp-redux/5467 branch September 5, 2018 21:15
chef-ci pushed a commit that referenced this pull request Sep 5, 2018
Obvious fix; these changes are the result of automation not creative thinking.
@baumanj baumanj mentioned this pull request Sep 10, 2018
7 tasks
baumanj added a commit that referenced this pull request Sep 10, 2018
This is more concise and has the benefit of cleaning up afterwards if there is
an error before the temporary file is renamed.

See similar prior work #5562

Signed-off-by: Jon Bauman <5906042+baumanj@users.noreply.github.com>
@christophermaier christophermaier added Type:BugFixes PRs that fix an existing bug and removed X-fix labels Jul 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type:BugFixes PRs that fix an existing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants