Reverts keymap precedence order change

This commit is contained in:
Mikayla Maki 2023-02-23 13:32:45 -08:00
parent f6601f64e5
commit ffe53bed87
2 changed files with 55 additions and 11 deletions

View file

@ -16,6 +16,14 @@ pub trait Action: 'static {
Self: Sized;
}
impl std::fmt::Debug for dyn Action {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.debug_struct("dyn Action")
.field("namespace", &self.namespace())
.field("name", &self.name())
.finish()
}
}
/// Define a set of unit struct types that all implement the `Action` trait.
///
/// The first argument is a namespace that will be associated with each of