aboutsummaryrefslogtreecommitdiff
path: root/crates/rust-analyzer/src/handlers.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/rust-analyzer/src/handlers.rs')
-rw-r--r--crates/rust-analyzer/src/handlers.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/handlers.rs b/crates/rust-analyzer/src/handlers.rs
index 456744603..49ee4b922 100644
--- a/crates/rust-analyzer/src/handlers.rs
+++ b/crates/rust-analyzer/src/handlers.rs
@@ -1640,7 +1640,7 @@ fn run_rustfmt(
1640 .into()); 1640 .into());
1641 } 1641 }
1642 1642
1643 let frange = from_proto::file_range(&snap, text_document.clone(), range)?; 1643 let frange = from_proto::file_range(&snap, text_document, range)?;
1644 let start_line = line_index.index.line_col(frange.range.start()).line; 1644 let start_line = line_index.index.line_col(frange.range.start()).line;
1645 let end_line = line_index.index.line_col(frange.range.end()).line; 1645 let end_line = line_index.index.line_col(frange.range.end()).line;
1646 1646