notedeck

One damus client to rule them all
git clone git://jb55.com/notedeck
Log | Files | Refs | README | LICENSE

commit 1c3b172e21f637dc06d9ddbb5ae407f2e5a4b9d3
parent d9b1de9d2c96fc0239ccd9cd68760e632521e28f
Author: William Casarin <jb55@jb55.com>
Date:   Sat, 31 May 2025 16:32:04 -0700

clippy: fix large enum.

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mcrates/notedeck_columns/src/nav.rs | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/crates/notedeck_columns/src/nav.rs b/crates/notedeck_columns/src/nav.rs @@ -123,8 +123,8 @@ impl From<NoteAction> for RenderNavAction { } enum NotedeckNavResponse { - Popup(PopupResponse<Option<RenderNavAction>>), - Nav(NavResponse<Option<RenderNavAction>>), + Popup(Box<PopupResponse<Option<RenderNavAction>>>), + Nav(Box<NavResponse<Option<RenderNavAction>>>), } pub struct RenderNavResponse { @@ -147,11 +147,11 @@ impl RenderNavResponse { ) -> bool { match self.response { NotedeckNavResponse::Popup(nav_action) => { - process_popup_resp(nav_action, app, ctx, ui, self.column); + process_popup_resp(*nav_action, app, ctx, ui, self.column); false } NotedeckNavResponse::Nav(nav_response) => { - process_nav_resp(app, ctx, ui, nav_response, self.column) + process_nav_resp(app, ctx, ui, *nav_response, self.column) } } } @@ -748,7 +748,7 @@ pub fn render_nav( NavUiType::Body => render_nav_body(ui, app, ctx, route, 1, col, inner_rect), }); - return RenderNavResponse::new(col, NotedeckNavResponse::Popup(resp)); + return RenderNavResponse::new(col, NotedeckNavResponse::Popup(Box::new(resp))); } }; @@ -790,5 +790,5 @@ pub fn render_nav( } }); - RenderNavResponse::new(col, NotedeckNavResponse::Nav(nav_response)) + RenderNavResponse::new(col, NotedeckNavResponse::Nav(Box::new(nav_response))) }