Fix adapter selection

This commit is contained in:
Timon
2026-07-19 15:17:10 +00:00
parent adba81a906
commit 90d953f199

View File

@@ -49,7 +49,7 @@ impl ContextBuilder {
let mut adapters = enumerate_sorted(&instance, self.backends).await;
if let Some(index) = self.selection
&& index >= adapters.len()
&& index < adapters.len()
{
let selected_adapter = adapters.remove(index);
adapters.insert(0, selected_adapter);