Remove deprecated slice diffing methods

This commit is contained in:
Armin Ronacher 2021-09-11 17:42:46 +02:00
parent 25aba69438
commit e3c6e5498a
4 changed files with 4 additions and 39 deletions

View file

@ -83,19 +83,6 @@ where
Ok(())
}
/// Shortcut for diffing slices.
#[deprecated(
since = "1.4.0",
note = "slice utility function is now only available via similar::algorithms::diff_slices"
)]
pub fn diff_slices<D, T>(d: &mut D, old: &[T], new: &[T]) -> Result<(), D::Error>
where
D: DiffHook,
T: Eq + Hash,
{
diff(d, old, 0..old.len(), new, 0..new.len())
}
struct Patience<'old, 'new, 'd, Old: ?Sized, New: ?Sized, D> {
d: &'d mut D,
old: &'old Old,