From 9f95864c8a0cd57205809337bef22971a9578a10 Mon Sep 17 00:00:00 2001 From: Vlad Lazar Date: Mon, 4 Nov 2024 14:08:26 +0100 Subject: [PATCH] review: remove matches! usage --- pageserver/src/tenant/timeline.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pageserver/src/tenant/timeline.rs b/pageserver/src/tenant/timeline.rs index a3d93c9980..c7ea4455ac 100644 --- a/pageserver/src/tenant/timeline.rs +++ b/pageserver/src/tenant/timeline.rs @@ -1144,10 +1144,7 @@ impl Timeline { futs.push({ let walredo_self = self.myself.upgrade().expect("&self method holds the arc"); async move { - assert!(matches!( - state.situation, - ValueReconstructSituation::Complete - )); + assert_eq!(state.situation, ValueReconstructSituation::Complete); let converted = match state.collect_pending_ios().await { Ok(ok) => ok,