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

Avoid using temporary files when overwriting formatted files to preserve file permissions #104

Merged
merged 1 commit into from
Aug 1, 2024

Conversation

sile
Copy link
Owner

@sile sile commented Jul 31, 2024

Fixes #103

Copilot Summary

This pull request includes several changes to the Cargo.toml and src/main.rs files, focusing on dependency updates and code simplification. The most important changes include removing the tempfile dependency and simplifying the overwrite function.

Dependency updates:

Code simplification:

  • src/main.rs: Removed the tempfile usage in the overwrite function and replaced it with std::fs::write for writing text to a file.
  • src/main.rs: Removed the unused import std::io::Write.

@sile sile mentioned this pull request Jul 31, 2024
@sile sile merged commit e1fd9c1 into master Aug 1, 2024
10 checks passed
@sile sile deleted the fix-execution-bit branch August 1, 2024 00:32
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.

efmt removes execute bit
1 participant