chore(ui/prompt): use &str instead of Cow<str>

- Resolve https://github.com/helix-editor/helix/pull/5768/files#r1140994104
pull/9/head
wongjiahau 1 year ago
parent eebff622de
commit f37c795c96

@ -94,8 +94,8 @@ impl Prompt {
self
}
pub fn prompt(&self) -> Cow<str> {
self.prompt.clone()
pub fn prompt(&self) -> &str {
self.prompt.as_ref()
}
pub fn line(&self) -> &String {

Loading…
Cancel
Save