Use is_empty_range in a function where it was missed
This commit is contained in:
parent
5a24bb8652
commit
56f50a0c87
1 changed files with 1 additions and 1 deletions
|
|
@ -149,7 +149,7 @@ where
|
|||
New: Index<usize> + ?Sized,
|
||||
New::Output: PartialEq<Old::Output>,
|
||||
{
|
||||
if old_range.start >= old_range.end || new_range.start >= new_range.end {
|
||||
if is_empty_range(&old_range) || is_empty_range(&new_range) {
|
||||
return 0;
|
||||
}
|
||||
new_range
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue