Take an Iterator of TextArea in prepare

This commit is contained in:
Héctor Ramón Jiménez 2023-02-05 18:22:56 +01:00 committed by Josh Groves
parent 7f31965063
commit 0857bef584
3 changed files with 10 additions and 8 deletions

View file

@ -101,7 +101,7 @@ async fn run() {
width: config.width,
height: config.height,
},
&[TextArea {
[TextArea {
buffer: &buffer,
left: 10,
top: 10,
@ -112,7 +112,8 @@ async fn run() {
bottom: 160,
},
default_color: Color::rgb(255, 255, 255),
}],
}]
.into_iter(),
&mut cache,
)
.unwrap();