From 4805b1aed40699a633f535eab6ec4d5bfbf598fb Mon Sep 17 00:00:00 2001 From: Erik Kundt Date: Wed, 12 Jun 2024 16:37:11 +0200 Subject: [PATCH] bin: Adjust to mutable widgets in render function --- bin/commands/inbox/select/ui.rs | 2 +- bin/commands/issue/select/ui.rs | 2 +- bin/commands/patch/select/ui.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/commands/inbox/select/ui.rs b/bin/commands/inbox/select/ui.rs index ba4c205c..8e3b1243 100644 --- a/bin/commands/inbox/select/ui.rs +++ b/bin/commands/inbox/select/ui.rs @@ -252,7 +252,7 @@ impl View for Browser { self.search.update(state); } - fn render(&self, props: Option<&ViewProps>, render: RenderProps, frame: &mut Frame) { + fn render(&mut self, props: Option<&ViewProps>, render: RenderProps, frame: &mut Frame) { let default = BrowserProps::default(); let props = props .and_then(|props| props.inner_ref::()) diff --git a/bin/commands/issue/select/ui.rs b/bin/commands/issue/select/ui.rs index 7024fd79..5ab14117 100644 --- a/bin/commands/issue/select/ui.rs +++ b/bin/commands/issue/select/ui.rs @@ -269,7 +269,7 @@ impl View for Browser { self.search.update(state); } - fn render(&self, props: Option<&ViewProps>, render: RenderProps, frame: &mut Frame) { + fn render(&mut self, props: Option<&ViewProps>, render: RenderProps, frame: &mut Frame) { let default = BrowserProps::default(); let props = props .and_then(|props| props.inner_ref::()) diff --git a/bin/commands/patch/select/ui.rs b/bin/commands/patch/select/ui.rs index e86eb120..ced61245 100644 --- a/bin/commands/patch/select/ui.rs +++ b/bin/commands/patch/select/ui.rs @@ -283,7 +283,7 @@ impl View for Browser { self.search.update(state); } - fn render(&self, props: Option<&ViewProps>, render: RenderProps, frame: &mut Frame) { + fn render(&mut self, props: Option<&ViewProps>, render: RenderProps, frame: &mut Frame) { let default = BrowserProps::default(); let props = props .and_then(|props| props.inner_ref::())