Skip to content

Commit

Permalink
Bump ratatui to 0.24.0 (#15)
Browse files Browse the repository at this point in the history
* Bump ratatui to 0.24.0

* fix: remove generic Backend param for render function
  • Loading branch information
pythops committed Nov 2, 2023
1 parent bea6caa commit 242bed2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
3 changes: 1 addition & 2 deletions src/ui.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use tui::{
backend::Backend,
layout::Alignment,
style::{Color, Style},
widgets::{Block, BorderType, Borders, Paragraph},
Expand All @@ -9,7 +8,7 @@ use tui::{
use crate::app::App;

/// Renders the user interface widgets.
pub fn render<B: Backend>(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
Expand Down

0 comments on commit 242bed2

Please sign in to comment.