Fix custom_widget example

This commit is contained in:
Florian Dehau 2017-09-03 12:16:34 +02:00
parent b8fd4a8685
commit 7749e5ee35

View file

@ -18,7 +18,7 @@ impl<'a> Default for Label<'a> {
}
impl<'a> Widget for Label<'a> {
fn draw(&self, area: &Rect, buf: &mut Buffer) {
fn draw(&mut self, area: &Rect, buf: &mut Buffer) {
buf.set_string(area.left(), area.top(), self.text, &Style::default());
}
}