diff --git a/Cargo.toml b/Cargo.toml index 4ff6ebf..9f6ff72 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,10 +28,10 @@ termion = ["dep:termion", "tui/termion"] search = ["dep:regex"] [dependencies] -crossterm = { version = "0.23", optional = true } +crossterm = { version = "0.25", optional = true } regex = { version = "1", optional = true } termion = { version = "1.5", optional = true } -tui = { version = "0.18", default-features = false } +tui = { version = "0.19", default-features = false } arbitrary = { version = "1", features = ["derive"], optional = true } [[example]] diff --git a/src/input.rs b/src/input.rs index 5eccc21..154f492 100644 --- a/src/input.rs +++ b/src/input.rs @@ -48,9 +48,9 @@ pub enum Key { /// let event = read().unwrap(); /// /// // `Input::from` can convert backend-native event into `Input` -/// let input = Input::from(event); +/// let input = Input::from(event.clone()); /// // or `Into::into` -/// let input: Input = event.into(); +/// let input: Input = event.clone().into(); /// // Conversion from `KeyEvent` value is also available /// if let Event::Key(key) = event { /// let input = Input::from(key);