mirror of
https://github.com/ratatui-org/ratatui
synced 2024-11-29 16:10:34 +00:00
refactor(example): remove redundant vec![]
in user_input
example (#26)
Co-authored-by: rhysd <lin90162@yahoo.co.jp>
This commit is contained in:
parent
4334c71bc7
commit
62930f2821
1 changed files with 1 additions and 1 deletions
|
@ -183,7 +183,7 @@ fn ui<B: Backend>(f: &mut Frame<B>, app: &App) {
|
||||||
.iter()
|
.iter()
|
||||||
.enumerate()
|
.enumerate()
|
||||||
.map(|(i, m)| {
|
.map(|(i, m)| {
|
||||||
let content = vec![Spans::from(Span::raw(format!("{}: {}", i, m)))];
|
let content = Spans::from(Span::raw(format!("{}: {}", i, m)));
|
||||||
ListItem::new(content)
|
ListItem::new(content)
|
||||||
})
|
})
|
||||||
.collect();
|
.collect();
|
||||||
|
|
Loading…
Reference in a new issue