diff options
| author | sigoden <sigoden@gmail.com> | 2025-06-28 19:17:43 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-28 19:17:43 +0800 |
| commit | 419790fb74fbaf47d54519238b5a542a3875961e (patch) | |
| tree | 8917db58a4a77a514079bf115d670a3f82003c03 /src/repl | |
| parent | bad300bbce72dff6f085fc8b94e8ffbdd103f47f (diff) | |
| download | aichat-419790fb74fbaf47d54519238b5a542a3875961e.tar.gz | |
chore: clippy (#1334)
Diffstat (limited to 'src/repl')
| -rw-r--r-- | src/repl/mod.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/repl/mod.rs b/src/repl/mod.rs index 73e0e9a..e844abc 100644 --- a/src/repl/mod.rs +++ b/src/repl/mod.rs @@ -386,24 +386,24 @@ pub async fn run_repl_command( ".info" => match args { Some("role") => { let info = config.read().role_info()?; - print!("{}", info); + print!("{info}"); } Some("session") => { let info = config.read().session_info()?; - print!("{}", info); + print!("{info}"); } Some("rag") => { let info = config.read().rag_info()?; - print!("{}", info); + print!("{info}"); } Some("agent") => { let info = config.read().agent_info()?; - print!("{}", info); + print!("{info}"); } Some(_) => unknown_command()?, None => { let output = config.read().sysinfo()?; - print!("{}", output); + print!("{output}"); } }, ".model" => match args { @@ -487,7 +487,7 @@ pub async fn run_repl_command( } match text { Some(text) => { - println!("{}", dimmed_text(&format!(">> {}", text))); + println!("{}", dimmed_text(&format!(">> {text}"))); let input = Input::from_str(config, &text, None); ask(config, abort_signal.clone(), input, true).await?; } @@ -570,7 +570,7 @@ pub async fn run_repl_command( ".sources" => match args { Some("rag") => { let output = Config::rag_sources(config)?; - println!("{}", output); + println!("{output}"); } _ => { println!(r#"Usage: .sources rag"#) |
