Fix unchecked build.
This commit is contained in:
parent
510c201d2f
commit
5e32af0ceb
@ -61,7 +61,7 @@ pub fn calc_index(
|
||||
}
|
||||
});
|
||||
#[cfg(feature = "unchecked")]
|
||||
return Ok(actual - (start.abs() as usize));
|
||||
return Ok(length - (start.abs() as usize));
|
||||
} else {
|
||||
Err(err().into())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user