Skip to content

Commit d44129c

Browse files
authored
Merge pull request RustPython#629 from coolreader18/anyrustvalue-debug
Have AnyRustValue actually format with its own Debug impl
2 parents 9b317af + 87a5878 commit d44129c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vm/src/pyobject.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1579,7 +1579,7 @@ impl fmt::Debug for PyObjectPayload {
15791579
PyObjectPayload::Instance { .. } => write!(f, "instance"),
15801580
PyObjectPayload::RustFunction { .. } => write!(f, "rust function"),
15811581
PyObjectPayload::Frame { .. } => write!(f, "frame"),
1582-
PyObjectPayload::AnyRustValue { .. } => write!(f, "some rust value"),
1582+
PyObjectPayload::AnyRustValue { value } => value.fmt(f),
15831583
}
15841584
}
15851585
}

0 commit comments

Comments
 (0)