Skip to content

Commit 40741c5

Browse files
committed
Use .to_string rather than format macro
1 parent 0dd1c6c commit 40741c5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/verify.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,29 +124,29 @@ fn prompt_for_completion(exercise: &Exercise, prompt_output: Option<String>) ->
124124
Mode::Clippy => "The code is compiling, and 📎 Clippy 📎 is happy!",
125125
};
126126

127-
println!("");
127+
println!();
128128
println!("🎉 🎉 {} 🎉 🎉", success_msg);
129-
println!("");
129+
println!();
130130

131131
if let Some(output) = prompt_output {
132132
println!("Output:");
133133
println!("{}", separator());
134134
println!("{}", output);
135135
println!("{}", separator());
136-
println!("");
136+
println!();
137137
}
138138

139139
println!("You can keep working on this exercise,");
140140
println!(
141141
"or jump into the next one by removing the {} comment:",
142142
style("`I AM NOT DONE`").bold()
143143
);
144-
println!("");
144+
println!();
145145
for context_line in context {
146146
let formatted_line = if context_line.important {
147147
format!("{}", style(context_line.line).bold())
148148
} else {
149-
format!("{}", context_line.line)
149+
context_line.line.to_string()
150150
};
151151

152152
println!(

0 commit comments

Comments
 (0)