mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 05:45:12 +00:00
Add identity expansion checking
This commit is contained in:
parent
92b561b5c7
commit
e1a9461806
3 changed files with 55 additions and 3 deletions
|
@ -95,6 +95,10 @@ impl TreeDiff {
|
|||
builder.replace(from.text_range(), to.to_string())
|
||||
}
|
||||
}
|
||||
|
||||
pub fn is_empty(&self) -> bool {
|
||||
self.replacements.is_empty()
|
||||
}
|
||||
}
|
||||
|
||||
/// Finds minimal the diff, which, applied to `from`, will result in `to`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue