Initialize debug with proper Program name

This commit is contained in:
Héctor Ramón Jiménez 2025-03-05 11:52:05 +01:00
parent f618382a0d
commit a106f7f837
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
2 changed files with 24 additions and 0 deletions

View file

@ -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>) {