review: Gate Result impls behind a feature gate

This commit is contained in:
Piotr Osiewicz
2025-06-06 11:52:50 +02:00
parent 43f5eb5c69
commit 3deb08946e
4 changed files with 20 additions and 6 deletions
+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,