As well as other smaller changes that make the code easier to work with.
The only API change that can't be helped are the line_junk and char_junk function pointers in the Differ struct, which now take &&str and &char parameters, respectively. This is probably for the better, since char_junk now operates on Unicode scalar values rather than the single UTF-8 bytes disguised as &str that were previously retrieved via the unsafe slice_unchecked() function.
As well as other smaller changes that make the code easier to work with.
The only API change that can't be helped are the
line_junk
andchar_junk
function pointers in the Differ struct, which now take&&str
and&char
parameters, respectively. This is probably for the better, sincechar_junk
now operates on Unicode scalar values rather than the single UTF-8 bytes disguised as&str
that were previously retrieved via the unsafeslice_unchecked()
function.