From 60e577e3832a2194281e66b33be13abffec953b6 Mon Sep 17 00:00:00 2001 From: Botahamec Date: Wed, 25 Sep 2024 20:39:05 -0400 Subject: Add comment --- src/collection/boxed.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/collection') 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; } -- cgit v1.2.3