summaryrefslogtreecommitdiff
path: root/src/collection
diff options
context:
space:
mode:
Diffstat (limited to 'src/collection')
-rw-r--r--src/collection/boxed.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/collection/boxed.rs b/src/collection/boxed.rs
index f8e0fb8..b0d1e3b 100644
--- a/src/collection/boxed.rs
+++ b/src/collection/boxed.rs
@@ -12,6 +12,7 @@ use super::{utils, BoxedLockCollection, LockGuard};
#[must_use]
fn contains_duplicates(l: &[&dyn RawLock]) -> bool {
if l.is_empty() {
+ // Return early to prevent panic in the below call to `windows`
return false;
}