mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-12 16:12:22 -06:00
refactor: remove unnecessary HashMap for passing code/state strings, formatter lifetime tweak
This commit is contained in:
@@ -112,8 +112,7 @@ where
|
||||
message: &'a mut Option<String>,
|
||||
fields: &'a mut Map<String, Value>,
|
||||
}
|
||||
|
||||
impl<'a> Visit for FieldVisitor<'a> {
|
||||
impl Visit for FieldVisitor<'_> {
|
||||
fn record_debug(&mut self, field: &Field, value: &dyn std::fmt::Debug) {
|
||||
let key = field.name();
|
||||
if key == "message" {
|
||||
|
||||
Reference in New Issue
Block a user