1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-03-12 06:06:07 +00:00

chore(core/rust/ui): avoid nested Child as LayoutObj root

[no changelog]
This commit is contained in:
Martin Milata 2022-11-03 15:17:04 +01:00
parent 3d645d609a
commit e778ec4af4

View File

@ -32,15 +32,6 @@ pub trait ComponentMsgObj: Component {
fn msg_try_into_obj(&self, msg: Self::Msg) -> Result<Obj, Error>; fn msg_try_into_obj(&self, msg: Self::Msg) -> Result<Obj, Error>;
} }
impl<T> ComponentMsgObj for Child<T>
where
T: ComponentMsgObj,
{
fn msg_try_into_obj(&self, msg: Self::Msg) -> Result<Obj, Error> {
self.inner().msg_try_into_obj(msg)
}
}
#[cfg(feature = "ui_debug")] #[cfg(feature = "ui_debug")]
mod maybe_trace { mod maybe_trace {
pub trait MaybeTrace: crate::trace::Trace {} pub trait MaybeTrace: crate::trace::Trace {}