Skip to content

Fix: E0716 temporary value dropped while borrowed#1122

Open
alien43 wants to merge 1 commit intomoghtech:mainfrom
alien43:main
Open

Fix: E0716 temporary value dropped while borrowed#1122
alien43 wants to merge 1 commit intomoghtech:mainfrom
alien43:main

Conversation

@alien43
Copy link
Copy Markdown

@alien43 alien43 commented Jan 26, 2026

Updated the AlertData::Custom formatting logic to resolve a compiler error introduced in newer Rust versions (1.92+). The previous use of format_args! within an if/else block created temporary values that were dropped before they could be used by the outer format! macro.

Updated the AlertData::Custom formatting logic to resolve a compiler error introduced in newer Rust versions (1.92+). The previous use of format_args! within an if/else block created temporary values that were dropped before they could be used by the outer format! macro.
@azban azban mentioned this pull request Mar 13, 2026
3 tasks
@alien43
Copy link
Copy Markdown
Author

alien43 commented Mar 14, 2026 via email

@azban
Copy link
Copy Markdown

azban commented Mar 14, 2026

Gotcha. I deleted that comment because I found out that pinning the version sets a minimum, rather than allowing to pin to a specific older version.

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