Make self mutable

pull/364/head
Spenser Black 4 years ago
parent 93cede3c4d
commit df79f250e2
No known key found for this signature in database
GPG Key ID: B41C77C44CB36A49

@ -49,7 +49,7 @@ impl<'a> PieChart<'a> {
}
impl<'a> Widget for PieChart<'a> {
fn render(self, area: Rect, buf: &mut Buffer) {
fn render(mut self, area: Rect, buf: &mut Buffer) {
let chart_area = match self.block {
Some(ref mut b) => {
b.render(area, buf);

Loading…
Cancel
Save