diff --git a/core/embed/rust/src/ui/layout/obj.rs b/core/embed/rust/src/ui/layout/obj.rs index 1b8af1ef78..eae3779905 100644 --- a/core/embed/rust/src/ui/layout/obj.rs +++ b/core/embed/rust/src/ui/layout/obj.rs @@ -4,6 +4,7 @@ use core::{ marker::PhantomData, ops::{Deref, DerefMut}, }; +#[cfg(feature = "touch")] use num_traits::{FromPrimitive, ToPrimitive}; #[cfg(feature = "button")]