diff options
| author | sigoden <sigoden@gmail.com> | 2023-11-02 10:45:11 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-02 10:45:11 +0800 |
| commit | 7c6841782d36faacc2aa3616dc3ed1b9403fa26e (patch) | |
| tree | 12d51728e056dbd4e57fc5977b7c51b2b60c06ae /src/repl/highlighter.rs | |
| parent | 444f4ebe9de8aa68afdf8d39b734a8543b9b5c4b (diff) | |
| download | aichat-7c6841782d36faacc2aa3616dc3ed1b9403fa26e.tar.gz | |
refactor: improve code quanity (#197)
- move model_info.rs/message.rs to clients/
- rename SharedConfig to GlobalConfig
Diffstat (limited to 'src/repl/highlighter.rs')
| -rw-r--r-- | src/repl/highlighter.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/repl/highlighter.rs b/src/repl/highlighter.rs index cca6297..37df659 100644 --- a/src/repl/highlighter.rs +++ b/src/repl/highlighter.rs @@ -1,15 +1,15 @@ -use crate::config::SharedConfig; +use crate::config::GlobalConfig; use nu_ansi_term::{Color, Style}; use reedline::{Highlighter, StyledText}; pub struct ReplHighlighter { external_commands: Vec<String>, - config: SharedConfig, + config: GlobalConfig, } impl ReplHighlighter { - pub fn new(external_commands: Vec<String>, config: SharedConfig) -> Self { + pub fn new(external_commands: Vec<String>, config: GlobalConfig) -> Self { Self { external_commands, config, |
