aboutsummaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorJoris2023-06-01 13:35:17 +0200
committerJoris2023-06-01 13:35:17 +0200
commit97e2441660b827dbec5fe3bf4512df5eb6d88125 (patch)
tree81e6cc9be5d8920526fccb82b400952e60f75cc3 /src/gui
parent1694c04364f8e9fb42b6232ae6f6cac9cf8af2d8 (diff)
Upgrade dependencies
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/question.rs4
1 files changed, 2 insertions, 2 deletions
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<B: Backend>(terminal: &mut Terminal<B>, title: &str, card: &Card) ->
})
.collect::<Vec<Vec<Span>>>()
.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]);
}
})?;