Use double reference in debug derive

This commit is contained in:
hkalbasi 2023-05-12 12:36:57 +03:30
parent 9b3387454d
commit 7da80d4f67
4 changed files with 91 additions and 8 deletions

View file

@ -387,7 +387,7 @@ impl < > core::fmt::Debug for Command< > where {
Command::Move {
x: x, y: y,
}
=>f.debug_struct("Move").field("x", x).field("y", y).finish(), Command::Do(f0, )=>f.debug_tuple("Do").field(f0).finish(), Command::Jump=>f.write_str("Jump"),
=>f.debug_struct("Move").field("x", &x).field("y", &y).finish(), Command::Do(f0, )=>f.debug_tuple("Do").field(&f0).finish(), Command::Jump=>f.write_str("Jump"),
}
}
}"#]],