diff --git a/src/task.rs b/src/task.rs index 7f2ac7d..8f54d87 100644 --- a/src/task.rs +++ b/src/task.rs @@ -4,7 +4,9 @@ pub trait Task { fn tick(&mut self) {} fn start(&mut self) {} fn stop(&mut self) {} - fn name(&self) -> &'static str; + fn name(&self) -> &'static str { + core::any::type_name::() + } } trait ScheduledState: std::fmt::Debug {