From ed031d9757a054461c1e5be09aa09a0a86980ccf Mon Sep 17 00:00:00 2001 From: Val Lorentz Date: Wed, 1 Nov 2023 09:30:46 +0100 Subject: [PATCH] Update ratatui to v0.24 --- Cargo.toml | 2 +- src/components.rs | 3 ++- src/components/fps.rs | 2 +- src/components/home.rs | 2 +- src/tui.rs | 1 - 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 08c1f63..773cf33 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -50,7 +50,7 @@ matrix-sdk = { git = "https://github.com/matrix-org/matrix-rust-sdk.git", rev = # UI crossterm = { version = "0.27.0", features = ["serde", "event-stream"] } -ratatui = { version = "0.23.0", features = ["serde", "macros"] } +ratatui = { version = "0.24.0", features = ["serde", "macros"] } strip-ansi-escapes = "0.2.0" [dev-dependencies] diff --git a/src/components.rs b/src/components.rs index 861df56..f5f7f77 100644 --- a/src/components.rs +++ b/src/components.rs @@ -1,12 +1,13 @@ use color_eyre::eyre::Result; use crossterm::event::{KeyEvent, MouseEvent}; use ratatui::layout::Rect; +use ratatui::Frame; use tokio::sync::mpsc::UnboundedSender; use crate::{ action::Action, config::Config, - tui::{Event, Frame}, + tui::Event, }; pub mod fps; diff --git a/src/components/fps.rs b/src/components/fps.rs index c24a9d6..9c5b80c 100644 --- a/src/components/fps.rs +++ b/src/components/fps.rs @@ -4,7 +4,7 @@ use color_eyre::eyre::Result; use ratatui::{prelude::*, widgets::*}; use super::Component; -use crate::{action::Action, tui::Frame}; +use crate::action::Action; #[derive(Debug, Clone, PartialEq)] pub struct FpsCounter { diff --git a/src/components/home.rs b/src/components/home.rs index fe97222..b23339a 100644 --- a/src/components/home.rs +++ b/src/components/home.rs @@ -7,7 +7,7 @@ use serde::{Deserialize, Serialize}; use tokio::sync::mpsc::UnboundedSender; use tokio::sync::OnceCell; -use super::{Component, Frame}; +use super::Component; use crate::{ action::Action, config::{Config, KeyBindings}, diff --git a/src/tui.rs b/src/tui.rs index 8e4e51c..d044524 100644 --- a/src/tui.rs +++ b/src/tui.rs @@ -25,7 +25,6 @@ pub type IO = std::io::Stderr; pub fn io() -> IO { std::io::stderr() } -pub type Frame<'a> = ratatui::Frame<'a, Backend>; #[derive(Clone, Debug, Serialize, Deserialize)] pub enum Event {