From d8890036774043ee646d6978e1cb156d8a244e51 Mon Sep 17 00:00:00 2001 From: Ben Date: Thu, 27 Jun 2024 13:23:27 +0200 Subject: [PATCH] test: fixed failing doc test on input example --- src/menu/input.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/menu/input.rs b/src/menu/input.rs index 375243a..46fc56d 100644 --- a/src/menu/input.rs +++ b/src/menu/input.rs @@ -17,7 +17,7 @@ use std::path::Path; use crossterm::event::{Event, KeyCode, KeyEvent}; use crossterm::{ - cursor, execute, terminal, + cursor, execute, terminal::{disable_raw_mode, enable_raw_mode, Clear, ClearType}, }; use regex::Regex; @@ -526,7 +526,7 @@ impl Input { /// /// # Examples /// -/// ``` +/// ```ignore /// use zenity::menu::input::Confirm; /// /// // Create a new confirmation prompt with a title and a default value of 'yes' @@ -599,7 +599,7 @@ impl Confirm { /// let confirm = Confirm::new("Do you want to proceed?", true).start(); /// ``` pub fn start(&self) -> bool { - terminal::enable_raw_mode().unwrap(); + enable_raw_mode().unwrap(); // render the prompt execute!(io::stdout(), Print(&self.title)).unwrap();