diff --git a/src/diff.rs b/src/diff.rs index d584e6a..a5edf9d 100644 --- a/src/diff.rs +++ b/src/diff.rs @@ -200,7 +200,7 @@ fn qsufsort(I: &mut [isize], V: &mut [isize], old: &[u8]) { } h += h; } - for (i, v) in V[0..old.len() + 1].iter().copied().enumerate() { + for (i, v) in V[0..=old.len()].iter().copied().enumerate() { I[usz(v)] = i as isize; } } diff --git a/src/patch.rs b/src/patch.rs index a49e4fd..35a1f78 100644 --- a/src/patch.rs +++ b/src/patch.rs @@ -27,7 +27,6 @@ * POSSIBILITY OF SUCH DAMAGE. */ -use std::convert::TryInto; use std::io; use std::io::Read;