From 4ffff0d9d94bd1875e6b316b84ac11e5c5c9657c Mon Sep 17 00:00:00 2001 From: "sorokin.oleg.edu" Date: Tue, 22 Sep 2026 12:02:29 -0700 Subject: [PATCH] Fix indentation test fixture borrowing and focus trait import --- crates/oa-desktop/src/app/source_indentation_tests.rs | 2 +- crates/oa-desktop/src/source_indentation/keyboard_tests.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/oa-desktop/src/app/source_indentation_tests.rs b/crates/oa-desktop/src/app/source_indentation_tests.rs index 7477ab2f..b80187dc 100644 --- a/crates/oa-desktop/src/app/source_indentation_tests.rs +++ b/crates/oa-desktop/src/app/source_indentation_tests.rs @@ -5,7 +5,7 @@ fn fixture(source: &str) -> App { let mut app = App::with_project(Project::empty()); app.page = Page::Text; app.source_workspace = Workspace::new( - oa_core::source_project::SourceBundle { + &oa_core::source_project::SourceBundle { entry: "project.arcadia".into(), files: std::collections::BTreeMap::from([("project.arcadia".into(), source.into())]), }, diff --git a/crates/oa-desktop/src/source_indentation/keyboard_tests.rs b/crates/oa-desktop/src/source_indentation/keyboard_tests.rs index 16121512..6a29aeff 100644 --- a/crates/oa-desktop/src/source_indentation/keyboard_tests.rs +++ b/crates/oa-desktop/src/source_indentation/keyboard_tests.rs @@ -1,5 +1,6 @@ //! Real mounted Iced keyboard dispatch, using the production binding function. use crate::{app::Message, source_navigation::SymbolContext, views::source_tests::FontLayout}; +use iced::advanced::widget::operation::Focusable; use iced::{ Element, Font, Rectangle, Size, advanced::{Layout, Shell, layout, text, widget as core_widget},