fix(examples): remove redundant `vec![]`

pull/631/head
rhysd 2 years ago
parent a6b25a4877
commit 660bca9ad5

@ -182,7 +182,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…
Cancel
Save