summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs
index 470054e..f89ec47 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -162,7 +162,7 @@ async fn main() -> Result<()> {
#[async_recursion]
async fn start_directive(
config: &GlobalConfig,
- mut input: Input,
+ input: Input,
no_stream: bool,
code_mode: bool,
abort_signal: AbortSignal,
@@ -196,7 +196,7 @@ async fn start_directive(
};
config
.write()
- .after_chat_completion(&mut input, &output, &tool_results)?;
+ .after_chat_completion(&input, &output, &tool_results)?;
config.write().exit_session()?;
@@ -237,7 +237,7 @@ async fn shell_execute(config: &GlobalConfig, shell: &Shell, mut input: Input) -
}
config
.write()
- .after_chat_completion(&mut input, &eval_str, &[])?;
+ .after_chat_completion(&input, &eval_str, &[])?;
let render_options = config.read().render_options()?;
let mut markdown_render = MarkdownRender::init(render_options)?;
if config.read().dry_run {