From 732ac49321fc65a47dac1b48ca12dd6fdba3b23c Mon Sep 17 00:00:00 2001 From: Mingun Date: Sun, 30 Apr 2023 01:57:48 +0500 Subject: [PATCH] Implement PartialEq for IgnoredAny so it can be used in tests --- serde/src/de/ignored_any.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serde/src/de/ignored_any.rs b/serde/src/de/ignored_any.rs index 9ed438e7..34f2271b 100644 --- a/serde/src/de/ignored_any.rs +++ b/serde/src/de/ignored_any.rs @@ -108,7 +108,7 @@ use de::{ /// # Ok(()) /// # } /// ``` -#[derive(Copy, Clone, Debug, Default)] +#[derive(Copy, Clone, Debug, Default, PartialEq)] pub struct IgnoredAny; impl<'de> Visitor<'de> for IgnoredAny {