From 242bed2a2128d2833369120c1a4cd8a9421f1af3 Mon Sep 17 00:00:00 2001 From: BADR Date: Fri, 3 Nov 2023 00:19:12 +0100 Subject: [PATCH] Bump ratatui to 0.24.0 (#15) * Bump ratatui to 0.24.0 * fix: remove generic Backend param for render function --- Cargo.toml | 2 +- src/ui.rs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1f5e83f..42664b1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,4 +7,4 @@ edition = "2021" [dependencies] crossterm = "0.26.1" -tui = { package = "ratatui", version = "0.21.0" } +tui = { package = "ratatui", version = "0.24.0" } diff --git a/src/ui.rs b/src/ui.rs index c6447a2..840606c 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -1,5 +1,4 @@ use tui::{ - backend::Backend, layout::Alignment, style::{Color, Style}, widgets::{Block, BorderType, Borders, Paragraph}, @@ -9,7 +8,7 @@ use tui::{ use crate::app::App; /// Renders the user interface widgets. -pub fn render(app: &mut App, frame: &mut Frame<'_, B>) { +pub fn render(app: &mut App, frame: &mut Frame) { // This is where you add new widgets. // See the following resources: // - https://docs.rs/ratatui/latest/ratatui/widgets/index.html