7 Commits

Author SHA1 Message Date
nmlgc 06afc1879b Implicitly convert &str to [u8] for compatibility with existing usage code
Thanks to stephaneyfx from the #rust IRC channel for showing me that
this needs separate type parameters on the functions in order to
compile.

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.
2018-07-05 21:46:43 +02:00
nmlgc 6fd59b0c08 Make SequenceMatcher generic over all slice types 2018-07-03 20:28:11 +02:00
nmlgc a053cc079a Run cargo fmt 2018-06-15 11:54:48 +02:00
Dima Kudosh 07de887127 Reformat code with rustfmt 2017-02-26 19:32:22 +03:00
Dima Kudosh ef70f2450e Remove lineterm in contextt_diff and unified_diff 2016-03-01 14:51:36 +03:00
Dima Kudosh 0035a1b816 Change spaces to tab 2016-02-29 14:05:31 +03:00
Dima Kudosh 208671babd Add example 2016-02-28 22:33:35 +03:00