mirror of
https://github.com/ratatui-org/ratatui
synced 2024-11-22 04:33:13 +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()
|
||||
.enumerate()
|
||||
.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)
|
||||
})
|
||||
.collect();
|
||||
|
|
Loading…
Reference in a new issue