diff options
Diffstat (limited to 'src/repl/prompt.rs')
| -rw-r--r-- | src/repl/prompt.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/repl/prompt.rs b/src/repl/prompt.rs index 5786b68..1264af4 100644 --- a/src/repl/prompt.rs +++ b/src/repl/prompt.rs @@ -17,26 +17,26 @@ impl ReplPrompt { } impl Prompt for ReplPrompt { - fn render_prompt_left(&self) -> Cow<str> { + fn render_prompt_left(&self) -> Cow<'_, str> { Cow::Owned(self.config.read().render_prompt_left()) } - fn render_prompt_right(&self) -> Cow<str> { + fn render_prompt_right(&self) -> Cow<'_, str> { Cow::Owned(self.config.read().render_prompt_right()) } - fn render_prompt_indicator(&self, _prompt_mode: reedline::PromptEditMode) -> Cow<str> { + fn render_prompt_indicator(&self, _prompt_mode: reedline::PromptEditMode) -> Cow<'_, str> { Cow::Borrowed("") } - fn render_prompt_multiline_indicator(&self) -> Cow<str> { + fn render_prompt_multiline_indicator(&self) -> Cow<'_, str> { Cow::Borrowed("... ") } fn render_prompt_history_search_indicator( &self, history_search: PromptHistorySearch, - ) -> Cow<str> { + ) -> Cow<'_, str> { let prefix = match history_search.status { PromptHistorySearchStatus::Passing => "", PromptHistorySearchStatus::Failing => "failing ", |
