review: Gate Result impls behind a feature gate

This commit is contained in:
Piotr Osiewicz committed 2025-06-06 11:57:32 +02:00
1 parent 43f5eb5c69
commit 3deb08946e
4 files changed
+20 -6

No files matched your search

+2
View File
@@ -2975,6 +2975,8 @@ where
////////////////////////////////////////////////////////////////////////////////
#[cfg(feature = "result")]
#[cfg_attr(docsrs, doc(cfg(feature = "result")))]
impl<'de, T, E> Deserialize<'de> for Result<T, E>
where
T: Deserialize<'de>,
+2
View File
@@ -660,6 +660,8 @@ where
////////////////////////////////////////////////////////////////////////////////
#[cfg(feature = "result")]
#[cfg_attr(docsrs, doc(cfg(feature = "result")))]
impl<T, E> Serialize for Result<T, E>
where
T: Serialize,