From feff7631fe7af38c3f591a7511a492ccfa461e57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?A=CC=81rpa=CC=81d=20Goretity?= Date: Sat, 17 Dec 2022 11:29:02 +0100 Subject: [PATCH] fix bug: errors from `resolve_asymmetric()` must be returned even if there was a change, so use eager "or" (`|`) instead of short-circuiting "or" (`||`) --- src/constraint_graph.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/constraint_graph.rs b/src/constraint_graph.rs index 0d761dc..1355ccc 100644 --- a/src/constraint_graph.rs +++ b/src/constraint_graph.rs @@ -422,7 +422,7 @@ impl ConstraintGraph { Ok(change) }) - .try_fold(false, |acc, chg| Ok(acc || chg?)) + .try_fold(false, |acc, chg| Ok(acc | chg?)) } #[must_use]