no need for string, line already string slice

This commit is contained in:
Peter Bartyik 2020-07-13 16:31:37 +02:00 committed by Ferran Basora
parent 41e41cd10b
commit 68c5f52e94

View File

@ -89,9 +89,7 @@ impl<'a> View<'a> {
let clean = line.trim_end_matches(|c: char| c.is_whitespace());
if !clean.is_empty() {
let text = line.to_string();
print!("{goto}{text}", goto = cursor::Goto(1, index as u16 + 1), text = &text);
print!("{goto}{text}", goto = cursor::Goto(1, index as u16 + 1), text = line);
}
}