Update ratatui to v0.24

This commit is contained in:
2023-11-01 09:30:46 +01:00
parent b98773a0a9
commit ed031d9757
5 changed files with 5 additions and 5 deletions

View File

@ -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]

View File

@ -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;

View File

@ -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 {

View File

@ -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},

View File

@ -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<IO>>;
#[derive(Clone, Debug, Serialize, Deserialize)]
pub enum Event {