From e541a7563035e93f6b5ca13ddd0bf9aa347cf2c3 Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Mon, 10 May 2021 17:30:06 +0900 Subject: tui: Disable tests for now. --- helix-tui/src/lib.rs | 60 ++++++++++++++++++++++++++-------------------------- 1 file changed, 30 insertions(+), 30 deletions(-) (limited to 'helix-tui/src') diff --git a/helix-tui/src/lib.rs b/helix-tui/src/lib.rs index 5f59fd3d..0d466f8b 100644 --- a/helix-tui/src/lib.rs +++ b/helix-tui/src/lib.rs @@ -58,17 +58,17 @@ //! use helix_tui::layout::{Layout, Constraint, Direction}; //! //! fn main() -> Result<(), io::Error> { -//! terminal::enable_raw_mode()?; +//! terminal::enable_raw_mode().unwrap(); //! let stdout = io::stdout(); //! let backend = CrosstermBackend::new(stdout); //! let mut terminal = Terminal::new(backend)?; -//! terminal.draw(|f| { -//! let size = f.size(); -//! let block = Block::default() -//! .title("Block") -//! .borders(Borders::ALL); -//! f.render_widget(block, size); -//! })?; +//! // terminal.draw(|f| { +//! // let size = f.size(); +//! // let block = Block::default() +//! // .title("Block") +//! // .borders(Borders::ALL); +//! // f.render_widget(block, size); +//! // })?; //! Ok(()) //! } //! ``` @@ -88,31 +88,31 @@ //! use helix_tui::layout::{Layout, Constraint, Direction}; //! //! fn main() -> Result<(), io::Error> { -//! terminal::enable_raw_mode()?; +//! terminal::enable_raw_mode().unwrap(); //! let stdout = io::stdout(); //! let backend = CrosstermBackend::new(stdout); //! let mut terminal = Terminal::new(backend)?; -//! terminal.draw(|f| { -//! let chunks = Layout::default() -//! .direction(Direction::Vertical) -//! .margin(1) -//! .constraints( -//! [ -//! Constraint::Percentage(10), -//! Constraint::Percentage(80), -//! Constraint::Percentage(10) -//! ].as_ref() -//! ) -//! .split(f.size()); -//! let block = Block::default() -//! .title("Block") -//! .borders(Borders::ALL); -//! f.render_widget(block, chunks[0]); -//! let block = Block::default() -//! .title("Block 2") -//! .borders(Borders::ALL); -//! f.render_widget(block, chunks[1]); -//! })?; +//! // terminal.draw(|f| { +//! // let chunks = Layout::default() +//! // .direction(Direction::Vertical) +//! // .margin(1) +//! // .constraints( +//! // [ +//! // Constraint::Percentage(10), +//! // Constraint::Percentage(80), +//! // Constraint::Percentage(10) +//! // ].as_ref() +//! // ) +//! // .split(f.size()); +//! // let block = Block::default() +//! // .title("Block") +//! // .borders(Borders::ALL); +//! // f.render_widget(block, chunks[0]); +//! // let block = Block::default() +//! // .title("Block 2") +//! // .borders(Borders::ALL); +//! // f.render_widget(block, chunks[1]); +//! // })?; //! Ok(()) //! } //! ``` -- cgit v1.2.3-70-g09d2