From bf4246482ee4a99208d7ca47aa525974a8195f15 Mon Sep 17 00:00:00 2001 From: rhysd Date: Mon, 15 Aug 2022 20:36:08 +0900 Subject: [PATCH] update tui to 0.19 and crossterm to 0.25 --- Cargo.toml | 4 ++-- src/input.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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);