aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ssr
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-08-12 15:58:56 +0100
committerAleksey Kladov <[email protected]>2020-08-12 15:58:56 +0100
commit7510048ec0a5d5e7136e3ea258954eb244d15baf (patch)
tree97a472bf38e4e3e079db27abf1f2c7b523a0d0b1 /crates/ra_ssr
parent8d34262956059aca7e6fded351a9299b3581a5cf (diff)
Cleanup TextEdit API
Diffstat (limited to 'crates/ra_ssr')
-rw-r--r--crates/ra_ssr/src/replacing.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ssr/src/replacing.rs b/crates/ra_ssr/src/replacing.rs
index 0943244ff..36ced3842 100644
--- a/crates/ra_ssr/src/replacing.rs
+++ b/crates/ra_ssr/src/replacing.rs
@@ -24,7 +24,7 @@ fn matches_to_edit_at_offset(
24 relative_start: TextSize, 24 relative_start: TextSize,
25 rules: &[ResolvedRule], 25 rules: &[ResolvedRule],
26) -> TextEdit { 26) -> TextEdit {
27 let mut edit_builder = ra_text_edit::TextEditBuilder::default(); 27 let mut edit_builder = TextEdit::builder();
28 for m in &matches.matches { 28 for m in &matches.matches {
29 edit_builder.replace( 29 edit_builder.replace(
30 m.range.range.checked_sub(relative_start).unwrap(), 30 m.range.range.checked_sub(relative_start).unwrap(),