From cb049f935b77719016b78b69b39d18a1f170e950 Mon Sep 17 00:00:00 2001 From: Alin Sinpalean Date: Thu, 3 Oct 2024 17:11:21 +0000 Subject: [PATCH] chore: [MR-610] Revert custom impl ExhaustiveSet for RejectCode This was introduced along with SysUnknown, for backwards compatibility. Now that SysUnknown is supported by the released replica, the filter can be dropped. --- rs/types/types/src/exhaustive.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/rs/types/types/src/exhaustive.rs b/rs/types/types/src/exhaustive.rs index cf5a5951fa6..bdcc4cb2ef1 100644 --- a/rs/types/types/src/exhaustive.rs +++ b/rs/types/types/src/exhaustive.rs @@ -284,10 +284,7 @@ impl ExhaustiveSet for BTreeSet { impl ExhaustiveSet for RejectCode { fn exhaustive_set(_: &mut R) -> Vec { - RejectCode::iter() - // TODO(MR-610): Drop this after `SysUnknown` is supported on mainnet. - .filter(|code| *code != RejectCode::SysUnknown) - .collect() + RejectCode::iter().collect() } }