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 <clio-agent@sisyphuslabs.ai>
This commit is contained in:
parent
6a01aa52e6
commit
0d2cd3229e
1 changed files with 1 additions and 1 deletions
|
|
@ -1810,7 +1810,7 @@ struct ProviderRuntimeClient {
|
|||
|
||||
impl ProviderRuntimeClient {
|
||||
fn new(model: &str, allowed_tools: BTreeSet<String>) -> Result<Self, String> {
|
||||
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())?,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue