Skip to content

Replace eprintln! with writeln! to avoid broken stdio panic #88

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

Merged
merged 1 commit into from
Apr 30, 2025

Conversation

SpriteOvO
Copy link
Owner

Context #87.

Rust's print macros ({,e}print{,ln}!) will panic if a write fails. This PR replaces the only use of eprintln! with writeln!(stderr()) to avoid such potential panic.

@SpriteOvO SpriteOvO force-pushed the no-print-macro branch 5 times, most recently from b1a4205 to ebbc392 Compare April 30, 2025 21:44
@SpriteOvO SpriteOvO merged commit 8e9bd61 into main-dev Apr 30, 2025
76 checks passed
@SpriteOvO SpriteOvO deleted the no-print-macro branch April 30, 2025 22:53
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.

1 participant