From 40741c5b0b1beee02cbd916a66ed7ecb4e0d63e1 Mon Sep 17 00:00:00 2001 From: Abdou Seck Date: Wed, 3 Jun 2020 17:18:48 -0400 Subject: [PATCH] Use .to_string rather than format macro --- src/verify.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/verify.rs b/src/verify.rs index c9a7b6b8..6e0e45ec 100644 --- a/src/verify.rs +++ b/src/verify.rs @@ -124,16 +124,16 @@ fn prompt_for_completion(exercise: &Exercise, prompt_output: Option) -> 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) -> "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!(