fix(tui): resolve remaining clippy errors in workspace
- turn.rs: remove needless ref borrowing - view/mod.rs: use unit struct directly instead of ::default() for ChatComponent, InputComponent, StatusBarComponent, SidebarComponent These were uncovered after fixing the infrastructure crate errors.
This commit is contained in:
@@ -23,7 +23,7 @@ fn resolve_api_key(state: &AppStateRest, provider_name: &str) -> String {
|
||||
if let Some(key) = state.settings.api_keys.get(provider_name) {
|
||||
return key.clone();
|
||||
}
|
||||
if let Some(ref cfg) = state.app_config.providers.get(provider_name) {
|
||||
if let Some(cfg) = state.app_config.providers.get(provider_name) {
|
||||
if let Some(ref default_key) = cfg.default_api_key {
|
||||
if !default_key.is_empty() {
|
||||
return default_key.clone();
|
||||
|
||||
Reference in New Issue
Block a user