Take an Iterator
of TextArea
in prepare
This commit is contained in:
parent
7f31965063
commit
0857bef584
3 changed files with 10 additions and 8 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue