Skip to content

Commit 482a74f

Browse files
committed
fix clippy
1 parent b30b80e commit 482a74f

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

crates/chat-cli/src/constants.rs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,14 @@ pub mod ui_text {
2222

2323
/// Changelog header text
2424
pub fn changelog_header() -> String {
25-
format!(
26-
"{}",
27-
color_print::cstr! {"<magenta,bold>What's New in Amazon Q CLI</magenta,bold>\n\n"}
28-
)
25+
color_print::cstr! {"<magenta,bold>What's New in Amazon Q CLI</magenta,bold>\n\n"}.to_string()
2926
}
3027

3128
/// Trust all tools warning text
3229
pub fn trust_all_warning() -> String {
33-
format!(
34-
"{}",
35-
color_print::cstr! {"<green!>All tools are now trusted (<red!>!</red!>). Amazon Q will execute tools <bold>without</bold> asking for confirmation.\
30+
color_print::cstr! {"<green!>All tools are now trusted (<red!>!</red!>). Amazon Q will execute tools <bold>without</bold> asking for confirmation.\
3631
\nAgents can sometimes do unexpected things so understand the risks.</green!>
37-
\nLearn more at https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/command-line-chat-security.html#command-line-chat-trustall-safety"}
38-
)
32+
\nLearn more at https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/command-line-chat-security.html#command-line-chat-trustall-safety"}.to_string()
3933
}
4034

4135
/// Rate limit reached message

0 commit comments

Comments
 (0)