1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-22 22:38:08 +00:00

fix(core): fix rust tests build

[no changelog]
This commit is contained in:
cepetr 2024-11-20 12:21:00 +01:00 committed by cepetr
parent 9c0a37717c
commit 97b430709c

View File

@ -40,7 +40,9 @@ pub fn text_baseline(font: i32) -> i16 {
}
pub fn sync() {
#[cfg(not(feature = "framebuffer"))]
// NOTE: The sync operation is not called for tests because the linker
// would otherwise report missing symbols if the tests are built with ASAN.
#[cfg(not(any(feature = "framebuffer", feature = "test")))]
unsafe {
ffi::display_wait_for_sync();
}