Skip to content

Commit d63023f

Browse files
committed
Reformat
1 parent 6c0c303 commit d63023f

2 files changed

Lines changed: 14 additions & 14 deletions

File tree

crates/ark/src/lsp/state_handlers.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -432,9 +432,10 @@ pub(crate) fn did_change_watched_files(
432432
})
433433
.collect();
434434

435-
let pending = lsp_state
436-
.oak_scheduler
437-
.apply_watcher_events(&mut state.oak, events, &editor_owned);
435+
let pending =
436+
lsp_state
437+
.oak_scheduler
438+
.apply_watcher_events(&mut state.oak, events, &editor_owned);
438439
Ok(pending)
439440
}
440441

crates/ark/src/lsp/tests/state_handlers.rs

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,12 @@ fn set_workspace_paths(state: &mut WorldState, paths: &[PathBuf], editor_owned:
4747
let reqs = lsp_state
4848
.oak_scheduler
4949
.set_workspace_paths(&mut state.oak, paths, editor_owned);
50-
drain(&mut state.oak, &mut lsp_state.oak_scheduler, reqs, editor_owned);
50+
drain(
51+
&mut state.oak,
52+
&mut lsp_state.oak_scheduler,
53+
reqs,
54+
editor_owned,
55+
);
5156
}
5257

5358
fn editor_owned_of(state: &WorldState) -> HashSet<UrlId> {
@@ -63,11 +68,8 @@ fn did_change_watched_files(
6368
state: &mut WorldState,
6469
) -> anyhow::Result<()> {
6570
let mut lsp_state = test_lsp_state();
66-
let pending = crate::lsp::state_handlers::did_change_watched_files(
67-
params,
68-
state,
69-
&mut lsp_state,
70-
)?;
71+
let pending =
72+
crate::lsp::state_handlers::did_change_watched_files(params, state, &mut lsp_state)?;
7173
let editor_owned = editor_owned_of(state);
7274
drain(
7375
&mut state.oak,
@@ -83,11 +85,8 @@ fn did_change_workspace_folders(
8385
state: &mut WorldState,
8486
) -> anyhow::Result<()> {
8587
let mut lsp_state = test_lsp_state();
86-
let pending = crate::lsp::state_handlers::did_change_workspace_folders(
87-
params,
88-
state,
89-
&mut lsp_state,
90-
)?;
88+
let pending =
89+
crate::lsp::state_handlers::did_change_workspace_folders(params, state, &mut lsp_state)?;
9190
let editor_owned = editor_owned_of(state);
9291
drain(
9392
&mut state.oak,

0 commit comments

Comments
 (0)