diff options
| author | Abdou Seck <djily02016@gmail.com> | 2020-06-03 17:18:48 -0400 |
|---|---|---|
| committer | Abdou Seck <djily02016@gmail.com> | 2020-06-03 17:18:48 -0400 |
| commit | 40741c5b0b1beee02cbd916a66ed7ecb4e0d63e1 (patch) | |
| tree | 31b0f828824b8ba3beddbe52cbf2f8c2fae872cf | |
| parent | 0dd1c6ca6b389789e0972aa955fe17aa15c95f29 (diff) | |
Use .to_string rather than format macro
| -rw-r--r-- | src/verify.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/verify.rs b/src/verify.rs index c9a7b6b..6e0e45e 100644 --- a/src/verify.rs +++ b/src/verify.rs @@ -124,16 +124,16 @@ fn prompt_for_completion(exercise: &Exercise, prompt_output: Option<String>) -> Mode::Clippy => "The code is compiling, and 📎 Clippy 📎 is happy!", }; - println!(""); + println!(); println!("🎉 🎉 {} 🎉 🎉", success_msg); - println!(""); + println!(); if let Some(output) = prompt_output { println!("Output:"); println!("{}", separator()); println!("{}", output); println!("{}", separator()); - println!(""); + println!(); } println!("You can keep working on this exercise,"); @@ -141,12 +141,12 @@ fn prompt_for_completion(exercise: &Exercise, prompt_output: Option<String>) -> "or jump into the next one by removing the {} comment:", style("`I AM NOT DONE`").bold() ); - println!(""); + println!(); for context_line in context { let formatted_line = if context_line.important { format!("{}", style(context_line.line).bold()) } else { - format!("{}", context_line.line) + context_line.line.to_string() }; println!( |
