From 97e2441660b827dbec5fe3bf4512df5eb6d88125 Mon Sep 17 00:00:00 2001 From: Joris Date: Thu, 1 Jun 2023 13:35:17 +0200 Subject: Upgrade dependencies --- src/gui/question.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/gui/question.rs b/src/gui/question.rs index e56249f..12ffa6f 100644 --- a/src/gui/question.rs +++ b/src/gui/question.rs @@ -9,7 +9,7 @@ use tui::{ backend::Backend, layout::{Alignment, Constraint, Direction, Layout}, style::{Color, Modifier, Style}, - text::{Span, Spans, Text}, + text::{Line, Span, Text}, widgets::{Paragraph, Wrap}, Terminal, }; @@ -120,7 +120,7 @@ pub fn ask(terminal: &mut Terminal, title: &str, card: &Card) -> }) .collect::>>() .concat(); - let p = Paragraph::new(Text::from(Spans::from(tabs))).alignment(Alignment::Center); + let p = Paragraph::new(Text::from(Line::from(tabs))).alignment(Alignment::Center); f.render_widget(p, chunks[4]); } })?; -- cgit v1.2.3