From 758bace2210e83dacadd755c3f97bb62ad259a73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= Date: Wed, 9 Nov 2022 22:17:14 +0900 Subject: [PATCH] fix test compilation --- helix-term/src/application.rs | 3 +++ helix-term/src/compositor.rs | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs index 433104dcc..39a6532d7 100644 --- a/helix-term/src/application.rs +++ b/helix-term/src/application.rs @@ -58,6 +58,9 @@ const LSP_DEADLINE: Duration = Duration::from_millis(16); #[cfg(not(feature = "integration"))] use tui::backend::CrosstermBackend; +#[cfg(feature = "integration")] +use tui::backend::TestBackend; + #[cfg(not(feature = "integration"))] type Terminal = tui::terminal::Terminal>; diff --git a/helix-term/src/compositor.rs b/helix-term/src/compositor.rs index bbcd21810..9dad36209 100644 --- a/helix-term/src/compositor.rs +++ b/helix-term/src/compositor.rs @@ -4,8 +4,6 @@ use helix_core::Position; use helix_view::graphics::{CursorKind, Rect}; -#[cfg(feature = "integration")] -use tui::backend::TestBackend; use tui::buffer::Buffer as Surface; pub type Callback = Box;