Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit ef71516

Browse files
committed
Run Cargo fmt
1 parent e537291 commit ef71516

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

rls/src/actions/requests.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,8 @@ impl RequestAction for References {
223223
ctx: InitActionContext,
224224
params: Self::Params,
225225
) -> Result<Self::Response, ResponseError> {
226-
let file_path = parse_file_path!(&params.text_document_position.text_document.uri, "find_all_refs")?;
226+
let file_path =
227+
parse_file_path!(&params.text_document_position.text_document.uri, "find_all_refs")?;
227228
let span = ctx.convert_pos_to_span(file_path, params.text_document_position.position);
228229

229230
let result =
@@ -251,7 +252,8 @@ impl RequestAction for Completion {
251252
return Self::fallback_response();
252253
}
253254

254-
let file_path = parse_file_path!(&params.text_document_position.text_document.uri, "complete")?;
255+
let file_path =
256+
parse_file_path!(&params.text_document_position.text_document.uri, "complete")?;
255257

256258
let cache = ctx.racer_cache();
257259
let session = ctx.racer_session(&cache);
@@ -329,7 +331,8 @@ impl RequestAction for Rename {
329331
// data is ready.
330332
ctx.block_on_build();
331333

332-
let file_path = parse_file_path!(&params.text_document_position.text_document.uri, "rename")?;
334+
let file_path =
335+
parse_file_path!(&params.text_document_position.text_document.uri, "rename")?;
333336
let span = ctx.convert_pos_to_span(file_path, params.text_document_position.position);
334337

335338
let analysis = ctx.analysis;

0 commit comments

Comments
 (0)