NFC: remove redundant clones (clippy::perf)

This commit is contained in:
Matthias Krüger
2021-06-03 15:32:46 +02:00
parent 23b48d377d
commit 9452dfaac7
5 changed files with 5 additions and 5 deletions

View File

@@ -1640,7 +1640,7 @@ fn run_rustfmt(
.into());
}
let frange = from_proto::file_range(&snap, text_document.clone(), range)?;
let frange = from_proto::file_range(&snap, text_document, range)?;
let start_line = line_index.index.line_col(frange.range.start()).line;
let end_line = line_index.index.line_col(frange.range.end()).line;