@@ -448,9 +448,16 @@ impl MappableCommand {
449impl fmt::Debug for MappableCommand {
449impl fmt::Debug for MappableCommand {
450 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
450 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
451− f.debug_tuple("MappableCommand")
451+ match self {
452− .field(&self.name())
452+ MappableCommand::Static { name, .. } => {
453+ f.debug_tuple("MappableCommand").field(name).finish()
455+ MappableCommand::Typable { name, args, .. } => f
456+ .debug_tuple("MappableCommand")
453− .finish()
459+ .finish(),
@@ -505,12 +512,16 @@ impl PartialEq for MappableCommand {
505 match (self, other) {
512 match (self, other) {
507 MappableCommand::Typable {
514 MappableCommand::Typable {
508− name: first_name, ..
515+ name: first_name,
510 MappableCommand::Typable {
519 MappableCommand::Typable {
511− name: second_name, ..
520+ name: second_name,
513− ) => first_name == second_name,
524+ ) => first_name == second_name && first_args == second_args,
515 MappableCommand::Static {
526 MappableCommand::Static {
516 name: first_name, ..
527 name: first_name, ..