From da5c215477c6c8d36e95dc412153657e2413f1f4 Mon Sep 17 00:00:00 2001 From: bunnie Date: Mon, 3 Mar 2025 02:12:57 +0800 Subject: [PATCH] fix type defaults for trait part of the i16->isize transition --- libs/ux-api/src/widgets/action.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libs/ux-api/src/widgets/action.rs b/libs/ux-api/src/widgets/action.rs index 854ed07af..15694e583 100644 --- a/libs/ux-api/src/widgets/action.rs +++ b/libs/ux-api/src/widgets/action.rs @@ -24,8 +24,10 @@ pub enum ActionType { #[enum_dispatch] pub trait ActionApi { - fn height(&self, glyph_height: i16, margin: i16, _modal: &Modal) -> i16 { glyph_height + margin * 2 } - fn redraw(&self, _at_height: i16, _modal: &Modal) { unimplemented!() } + fn height(&self, glyph_height: isize, margin: isize, _modal: &Modal) -> isize { + glyph_height + margin * 2 + } + fn redraw(&self, _at_height: isize, _modal: &Modal) { unimplemented!() } fn close(&mut self) {} fn is_password(&self) -> bool { false } /// navigation is one of '∴' | '←' | '→' | '↑' | '↓'