From 3ccd8f85d270d04355da5350aac4811d2efc6c59 Mon Sep 17 00:00:00 2001 From: Zerthox Date: Tue, 23 Jul 2024 17:09:13 +0200 Subject: [PATCH] Fix empty group bounds --- src/bounds.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bounds.rs b/src/bounds.rs index 848c141..312a1e6 100644 --- a/src/bounds.rs +++ b/src/bounds.rs @@ -23,6 +23,6 @@ pub trait Bounds { let ([b1, b2], [b3, b4]) = b; ([a1.min(b1), a2.min(b2)], [a3.max(b3), a4.max(b4)]) }) - .unwrap_or_default() + .unwrap_or_else(|| (pos, pos)) } }