Skip to content

Commit 4397cf6

Browse files
committed
fix unused task_slot in test build
1 parent 7badf90 commit 4397cf6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drv/stm32xx-sys/src/main.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,9 +326,11 @@ use idol_runtime::{ClientError, NotificationHandler, RequestError};
326326
#[cfg(not(feature = "test"))]
327327
use task_jefe_api::{Jefe, ResetReason};
328328

329+
#[cfg(not(feature = "test"))]
330+
use userlib::task_slot;
329331
#[cfg(feature = "exti")]
330332
use userlib::{sys_irq_control, sys_post, sys_refresh_task_id, TaskId};
331-
use userlib::{task_slot, FromPrimitive, RecvMessage};
333+
use userlib::{FromPrimitive, RecvMessage};
332334

333335
#[cfg(not(feature = "test"))]
334336
task_slot!(JEFE, jefe);

0 commit comments

Comments
 (0)