From 758bace2210e83dacadd755c3f97bb62ad259a73 Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Wed, 9 Nov 2022 22:17:14 +0900 Subject: fix test compilation --- helix-term/src/application.rs | 3 +++ helix-term/src/compositor.rs | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'helix-term') diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs index 433104dc..39a6532d 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 bbcd2181..9dad3620 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; -- cgit v1.2.3-70-g09d2