Skip to content

fix(cli): interpolate format arguments in bail! literal messages - #16128

Merged
lucasfernog merged 1 commit into
devfrom
fix/cli-bail-literal-format
Sep 25, 2026
Merged

lucasfernog merged 1 commit into
devfrom
fix/cli-bail-literal-format

Conversation

@lucasfernog

Copy link
Copy Markdown
Member

No description provided.

@lucasfernog
lucasfernog requested a review from a team as a code owner September 23, 2026 20:41
macro_rules! bail {
($msg:literal $(,)?) => {
return Err(crate::Error::GenericError($msg.into()))
return Err(crate::Error::GenericError(format!($msg)))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Does this trigger clippy warnings on literal format!?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@lucasfernog
lucasfernog merged commit 272842a into dev Sep 25, 2026
21 checks passed
@lucasfernog
lucasfernog deleted the fix/cli-bail-literal-format branch September 25, 2026 12:47
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