diff --git a/bin/commands/inbox/select/ui.rs b/bin/commands/inbox/select/ui.rs index 12e62add..3de1c9fa 100644 --- a/bin/commands/inbox/select/ui.rs +++ b/bin/commands/inbox/select/ui.rs @@ -119,7 +119,7 @@ where { fn render(&self, frame: &mut ratatui::Frame, _area: Rect, props: Option>) { let props = props - .and_then(|props| WindowProps::from_boxed_any(props)) + .and_then(WindowProps::from_boxed_any) .unwrap_or(self.props.clone()); let area = frame.size(); @@ -448,7 +448,7 @@ where { fn render(&self, frame: &mut ratatui::Frame, area: Rect, props: Option>) { let props = props - .and_then(|props| BrowsePageProps::from_boxed_any(props)) + .and_then(BrowsePageProps::from_boxed_any) .unwrap_or(self.props.clone()); let page_size = area.height.saturating_sub(6) as usize; @@ -733,7 +733,7 @@ where { fn render(&self, frame: &mut ratatui::Frame, area: Rect, props: Option>) { let props = props - .and_then(|props| HelpPageProps::from_boxed_any(props)) + .and_then(HelpPageProps::from_boxed_any) .unwrap_or(self.props.clone()); let page_size = area.height.saturating_sub(6) as usize; diff --git a/bin/commands/issue/select/ui.rs b/bin/commands/issue/select/ui.rs index d34203a0..c47e196f 100644 --- a/bin/commands/issue/select/ui.rs +++ b/bin/commands/issue/select/ui.rs @@ -122,7 +122,7 @@ where { fn render(&self, frame: &mut ratatui::Frame, _area: Rect, props: Option>) { let props = props - .and_then(|props| WindowProps::from_boxed_any(props)) + .and_then(WindowProps::from_boxed_any) .unwrap_or(self.props.clone()); let area = frame.size(); @@ -473,7 +473,7 @@ where { fn render(&self, frame: &mut ratatui::Frame, area: Rect, props: Option>) { let props = props - .and_then(|props| BrowsePageProps::from_boxed_any(props)) + .and_then(BrowsePageProps::from_boxed_any) .unwrap_or(self.props.clone()); let page_size = area.height.saturating_sub(6) as usize; @@ -758,7 +758,7 @@ where { fn render(&self, frame: &mut ratatui::Frame, area: Rect, props: Option>) { let props = props - .and_then(|props| HelpPageProps::from_boxed_any(props)) + .and_then(HelpPageProps::from_boxed_any) .unwrap_or(self.props.clone()); let page_size = area.height.saturating_sub(6) as usize; diff --git a/bin/commands/patch/select/ui.rs b/bin/commands/patch/select/ui.rs index 2ac0588a..cf52a6ba 100644 --- a/bin/commands/patch/select/ui.rs +++ b/bin/commands/patch/select/ui.rs @@ -124,7 +124,7 @@ where { fn render(&self, frame: &mut ratatui::Frame, _area: Rect, props: Option>) { let props = props - .and_then(|props| WindowProps::from_boxed_any(props)) + .and_then(WindowProps::from_boxed_any) .unwrap_or(self.props.clone()); let area = frame.size(); @@ -505,7 +505,7 @@ where { fn render(&self, frame: &mut ratatui::Frame, area: Rect, props: Option>) { let props = props - .and_then(|props| BrowsePageProps::from_boxed_any(props)) + .and_then(BrowsePageProps::from_boxed_any) .unwrap_or(self.props.clone()); let page_size = area.height.saturating_sub(6) as usize; @@ -790,7 +790,7 @@ where { fn render(&self, frame: &mut ratatui::Frame, area: Rect, props: Option>) { let props = props - .and_then(|props| HelpPageProps::from_boxed_any(props)) + .and_then(HelpPageProps::from_boxed_any) .unwrap_or(self.props.clone()); let page_size = area.height.saturating_sub(6) as usize;