Skip to content

Commit c9eb352

Browse files
committed
refactor: format!() in println!()
1 parent 45c020f commit c9eb352

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

src/main.rs

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,14 @@ fn main() {
1010
// Current not support interaction mode
1111
if args.len() < 2 {
1212
println!(
13-
"{}",
14-
format!(
15-
"\
16-
givememoney v{}\n\
17-
To allocate money, input `gmm [total] [each participant separate by space]`\n\
18-
\n\
19-
Check {} for more information and update.\
20-
",
21-
env!("CARGO_PKG_VERSION"),
22-
env!("CARGO_PKG_REPOSITORY"),
23-
)
13+
"\
14+
givememoney v{}\n\
15+
To allocate money, input `gmm [total] [each participant separate by space]`\n\
16+
\n\
17+
Check {} for more information and update.\
18+
",
19+
env!("CARGO_PKG_VERSION"),
20+
env!("CARGO_PKG_REPOSITORY"),
2421
);
2522
#[cfg(not(target_os = "windows"))]
2623
{

0 commit comments

Comments
 (0)