|
|
@ -11,10 +11,6 @@ pub fn compare_ropes(old: &Rope, new: &Rope) -> Transaction {
|
|
|
|
// A timeout is set so after 1 seconds, the algorithm will start
|
|
|
|
// A timeout is set so after 1 seconds, the algorithm will start
|
|
|
|
// approximating. This is especially important for big `Rope`s or
|
|
|
|
// approximating. This is especially important for big `Rope`s or
|
|
|
|
// `Rope`s that are extremely dissimilar to each other.
|
|
|
|
// `Rope`s that are extremely dissimilar to each other.
|
|
|
|
//
|
|
|
|
|
|
|
|
// Note: Ignore the clippy warning, as the trait bounds of
|
|
|
|
|
|
|
|
// `Transaction::change()` require an iterator implementing
|
|
|
|
|
|
|
|
// `ExactIterator`.
|
|
|
|
|
|
|
|
let mut config = similar::TextDiff::configure();
|
|
|
|
let mut config = similar::TextDiff::configure();
|
|
|
|
config.timeout(std::time::Duration::from_secs(1));
|
|
|
|
config.timeout(std::time::Duration::from_secs(1));
|
|
|
|
|
|
|
|
|
|
|
|