mirror of
https://github.com/rust-lang/rustlings.git
synced 2025-03-23 21:29:42 +02:00
Remove unneeded to_string call
This commit is contained in:
parent
a325df55d1
commit
01b7d6334c
@ -224,7 +224,7 @@ fn prompt_for_completion(
|
||||
let formatted_line = if context_line.important {
|
||||
format!("{}", style(context_line.line).bold())
|
||||
} else {
|
||||
context_line.line.to_string()
|
||||
context_line.line
|
||||
};
|
||||
|
||||
println!(
|
||||
|
Loading…
x
Reference in New Issue
Block a user