From 6710e71731ae1d3ed3e7689bfa32db8db6f1d05d Mon Sep 17 00:00:00 2001 From: Owen Leung Date: Wed, 11 Oct 2023 22:27:34 +0800 Subject: [PATCH] fix failing msrv test --- src/adaptors/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/adaptors/mod.rs b/src/adaptors/mod.rs index c5a0bfccb..18c864ad1 100644 --- a/src/adaptors/mod.rs +++ b/src/adaptors/mod.rs @@ -591,7 +591,10 @@ where Some(item) => Ok(f(acc, item)), None => Err(acc), }); - let (Err(res) | Ok(res)) = res; + let res = match res { + Ok(val) => val, + Err(val) => val, + }; res } }