Skip to content

Commit

Permalink
fix compatibility with rust 1.56
Browse files Browse the repository at this point in the history
  • Loading branch information
mphypermynds committed Apr 24, 2024
1 parent 66b12f4 commit f85e83c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/panicking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,5 +113,9 @@ where
{
let container_length = container.into_iter().count();

(container_length != length).then_some(container_length)
if container_length == length {
None
} else {
Some(container_length)
}
}

0 comments on commit f85e83c

Please sign in to comment.