Closed ksqsf closed 3 years ago
Hello @ksqsf
The reason I looked at this PR is because two equal indexes isn't the most obvious edge case :)
Would it make sense to return a single Option<(&mut T, &mut T)>
instead? I assume that in most cases either index being invalid is a bug, and returning a single option makes it easier to .unwrap()
.
Hi @tormol Thanks for your review. Just committed the changes.
@tormol You are a +1 on the PR?
Yes
This should fix #64.