From c08c6c0a4176b3c30203d25333eb7b8c0ad180d7 Mon Sep 17 00:00:00 2001 From: David Hewitt Date: Thu, 21 Dec 2023 12:28:12 +0000 Subject: [PATCH] make new downcast errors public API --- src/err/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/err/mod.rs b/src/err/mod.rs index 2681ca81..d87854e7 100644 --- a/src/err/mod.rs +++ b/src/err/mod.rs @@ -65,7 +65,7 @@ impl<'a> PyDowncastError<'a> { /// Error that indicates a failure to convert a PyAny to a more specific Python type. #[derive(Debug)] -pub(crate) struct PyDowncastError2<'a, 'py> { +pub struct PyDowncastError2<'a, 'py> { from: &'a Bound<'py, PyAny>, to: Cow<'static, str>, } @@ -83,7 +83,7 @@ impl<'a, 'py> PyDowncastError2<'a, 'py> { /// Error that indicates a failure to convert a PyAny to a more specific Python type. #[derive(Debug)] -pub(crate) struct PyDowncastIntoError<'py> { +pub struct PyDowncastIntoError<'py> { from: Bound<'py, PyAny>, to: Cow<'static, str>, }