Fix type inference error for api_key after removing ApiKey auth mode
Both match arms now return None, so Rust needs an explicit type annotation for the Option<String>. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -125,7 +125,7 @@ pub async fn start_project_container(
|
|||||||
let image_name = container_config::resolve_image_name(&settings.image_source, &settings.custom_image_name);
|
let image_name = container_config::resolve_image_name(&settings.image_source, &settings.custom_image_name);
|
||||||
|
|
||||||
// Get API key only if auth mode requires it
|
// Get API key only if auth mode requires it
|
||||||
let api_key = match project.auth_mode {
|
let api_key: Option<String> = match project.auth_mode {
|
||||||
AuthMode::Anthropic => {
|
AuthMode::Anthropic => {
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user