Initialize debug with proper Program name
This commit is contained in:
parent
f618382a0d
commit
a106f7f837
2 changed files with 24 additions and 0 deletions
|
|
@ -110,6 +110,10 @@ pub trait Program: Sized {
|
|||
type Flags = (P, I);
|
||||
type Executor = P::Executor;
|
||||
|
||||
fn name() -> &'static str {
|
||||
std::any::type_name::<P::State>()
|
||||
}
|
||||
|
||||
fn new(
|
||||
(program, initialize): Self::Flags,
|
||||
) -> (Self, Task<Self::Message>) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue