kibo: move types around

This commit is contained in:
nym21
2025-04-04 00:40:40 +02:00
parent 6700686e4b
commit 6a17ee414a
15 changed files with 193 additions and 247 deletions
+4
View File
@@ -200,6 +200,10 @@ where
.to_usize()
.unwrap();
if len == 0 {
return Err(Error::IndexTooHigh);
}
let from = from.map_or(0, |from| {
if from >= 0 {
from as usize