From 7c6841782d36faacc2aa3616dc3ed1b9403fa26e Mon Sep 17 00:00:00 2001 From: sigoden Date: Thu, 2 Nov 2023 10:45:11 +0800 Subject: refactor: improve code quanity (#197) - move model_info.rs/message.rs to clients/ - rename SharedConfig to GlobalConfig --- src/repl/prompt.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/repl/prompt.rs') diff --git a/src/repl/prompt.rs b/src/repl/prompt.rs index 7007b53..b4c9099 100644 --- a/src/repl/prompt.rs +++ b/src/repl/prompt.rs @@ -1,4 +1,4 @@ -use crate::config::SharedConfig; +use crate::config::GlobalConfig; use crossterm::style::Color; use reedline::{Prompt, PromptHistorySearch, PromptHistorySearchStatus}; @@ -11,11 +11,11 @@ const PROMPT_RIGHT_COLOR: Color = Color::AnsiValue(5); #[derive(Clone)] pub struct ReplPrompt { - config: SharedConfig, + config: GlobalConfig, } impl ReplPrompt { - pub fn new(config: SharedConfig) -> Self { + pub fn new(config: GlobalConfig) -> Self { Self { config } } } -- cgit v1.2.3