Speed up trivial case
This commit is contained in:
parent
570b5f9bfc
commit
b1c20887df
1 changed files with 4 additions and 0 deletions
|
|
@ -8,6 +8,10 @@ pub use operation::Operation;
|
|||
use crate::tokenizer::Tokenizer;
|
||||
|
||||
pub fn reconcile(original: &str, left: &str, right: &str) -> String {
|
||||
if left == right {
|
||||
return left.to_string();
|
||||
}
|
||||
|
||||
let left_operations = EditedText::from_strings(original, left);
|
||||
let right_operations = EditedText::from_strings(original, right);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue