diff options
| author | Botahamec <botahamec@outlook.com> | 2024-09-25 20:39:05 -0400 |
|---|---|---|
| committer | Botahamec <botahamec@outlook.com> | 2024-09-25 20:39:05 -0400 |
| commit | 60e577e3832a2194281e66b33be13abffec953b6 (patch) | |
| tree | 1f888f90f8133b8bdf64fb162f63f6159b886deb | |
| parent | c12df09eff1ada614ce5618eb2d050046bc87419 (diff) | |
Add comment
| -rw-r--r-- | src/collection/boxed.rs | 1 |
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; } |
