mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-03 13:22:33 +00:00
16 lines
334 B
Rust
16 lines
334 B
Rust
#[cfg(feature = "ui_debug")]
|
|
mod maybe_trace_private {
|
|
use crate::trace::Trace;
|
|
|
|
pub trait MaybeTrace: Trace {}
|
|
impl<T> MaybeTrace for T where T: Trace {}
|
|
}
|
|
|
|
#[cfg(not(feature = "ui_debug"))]
|
|
mod maybe_trace_private {
|
|
pub trait MaybeTrace {}
|
|
impl<T> MaybeTrace for T {}
|
|
}
|
|
|
|
pub use maybe_trace_private::MaybeTrace;
|