diff --git a/lib/src/nogoods.rs b/lib/src/nogoods.rs index fd6fa0a..de25bbe 100644 --- a/lib/src/nogoods.rs +++ b/lib/src/nogoods.rs @@ -79,7 +79,7 @@ impl NoGood { return None; } } - visit.then(|| result) + visit.then_some(result) } /// Creates an updated [Vec], based on the given [&[Term]] and the [NoGood].