diff --git a/examples/user_input.rs b/examples/user_input.rs index 330d5026..1fdec37d 100644 --- a/examples/user_input.rs +++ b/examples/user_input.rs @@ -182,7 +182,7 @@ fn ui(f: &mut Frame, 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();