Initial work to refactor the text module

This commit is contained in:
Armin Ronacher 2021-01-23 22:55:42 +01:00
parent 8692e89b0a
commit c0b61f95b0
2 changed files with 68 additions and 370 deletions

View file

@ -101,7 +101,7 @@ where
}
/// Creates a diff between old and new with the given algorithm capturing the ops.
pub fn capture_diff_slices<D, T>(alg: Algorithm, old: &[T], new: &[T]) -> Vec<DiffOp>
pub fn capture_diff_slices<T>(alg: Algorithm, old: &[T], new: &[T]) -> Vec<DiffOp>
where
T: Eq + Hash + Ord,
{