We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc1eb9f commit ce7a0f6Copy full SHA for ce7a0f6
src/err/mod.rs
@@ -111,6 +111,7 @@ impl<'py> DowncastIntoError<'py> {
111
}
112
113
// Helper to store either a concrete type or a type name
114
+#[derive(Debug)]
115
enum TypeNameOrValue<'py> {
116
Name(Cow<'static, str>),
117
Value(Bound<'py, PyType>),
@@ -845,12 +846,6 @@ fn display_downcast_error(
845
846
)
847
848
-impl std::fmt::Debug for TypeNameOrValue<'_> {
849
- fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
850
- std::fmt::Display::fmt(self, f)
851
- }
852
-}
853
-
854
impl std::fmt::Display for TypeNameOrValue<'_> {
855
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
856
match self {
0 commit comments