mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 07:28:10 +00:00
fix(core): fix rust tests build
[no changelog]
This commit is contained in:
parent
9c0a37717c
commit
97b430709c
@ -40,7 +40,9 @@ pub fn text_baseline(font: i32) -> i16 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn sync() {
|
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 {
|
unsafe {
|
||||||
ffi::display_wait_for_sync();
|
ffi::display_wait_for_sync();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user