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 } }