From 0d2cd3229ed72953af13b764fad5a7df319643c6 Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Thu, 2 Apr 2026 15:01:49 +0900 Subject: [PATCH] fix(tools): clone resolved model alias explicitly Resolves clippy::implicit_clone in tools/lib.rs. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus --- rust/crates/tools/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/crates/tools/src/lib.rs b/rust/crates/tools/src/lib.rs index 03cf671..7e26d2d 100644 --- a/rust/crates/tools/src/lib.rs +++ b/rust/crates/tools/src/lib.rs @@ -1810,7 +1810,7 @@ struct ProviderRuntimeClient { impl ProviderRuntimeClient { fn new(model: &str, allowed_tools: BTreeSet) -> Result { - let model = resolve_model_alias(model).to_string(); + let model = resolve_model_alias(model).clone(); let client = ProviderClient::from_model(&model).map_err(|error| error.to_string())?; Ok(Self { runtime: tokio::runtime::Runtime::new().map_err(|error| error.to_string())?,