fix test compilation

This commit is contained in:
Blaž Hrastnik 2022-11-09 22:17:14 +09:00
parent 264a455c18
commit 758bace221
No known key found for this signature in database
GPG key ID: 1238B9C4AD889640
2 changed files with 3 additions and 2 deletions

View file

@ -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<CrosstermBackend<std::io::Stdout>>;

View file

@ -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<dyn FnOnce(&mut Compositor, &mut Context)>;