Consume widget during rendering

This commit is contained in:
Joscha 2022-07-12 10:09:45 +02:00
parent 53a0f8d4af
commit d3229370f3
2 changed files with 2 additions and 2 deletions

View file

@ -47,7 +47,7 @@ impl Widget for Text {
Size::new(min_width as u16, min_height as u16)
}
async fn render(&self, frame: &mut Frame, pos: Pos, size: Size) {
async fn render(self, frame: &mut Frame, pos: Pos, size: Size) {
for (i, line) in self
.wrapped(frame, Some(size.width))
.into_iter()