chore: remove needless clone() in goose/providers (#2528)

Signed-off-by: Mike Seddon <seddonm1@gmail.com>
This commit is contained in:
Mike Seddon
2025-07-23 01:47:43 +10:00
committed by GitHub
parent ab8089499e
commit b3cd03ef61
19 changed files with 93 additions and 88 deletions
+3 -3
View File
@@ -89,12 +89,12 @@ impl OllamaInterpreter {
// Format the URL correctly with http:// prefix if needed
let base = if host.starts_with("http://") || host.starts_with("https://") {
host.clone()
&host
} else {
format!("http://{}", host)
&format!("http://{}", host)
};
let mut base_url = url::Url::parse(&base)
let mut base_url = url::Url::parse(base)
.map_err(|e| ProviderError::RequestFailed(format!("Invalid base URL: {e}")))?;
// Set the default port if missing