#424·anyhow

错误消息中的用户输入可能会使日志中包含 ANSI 逃逸序列

作者: dtolnay创建于 2025年9月3日更新于 2025年9月3日
>
Submitted by email from @zefr0x
When using `anyhow::Result` in the main function, user input can be unintentionally printed via an error's `core::fmt::Display` implementation when the application exits, it might print ANSI escape sequences, potentially compromising the integrity of log files and interacting with terminal emulators.