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