Skip to content

Commit a1fa874

Browse files
committed
Fix clippy
1 parent 80cb820 commit a1fa874

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

crates/ty_server/src/session.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -227,12 +227,7 @@ impl Session {
227227

228228
pub(crate) fn take_workspace_snapshot(&self) -> WorkspaceSnapshot {
229229
WorkspaceSnapshot {
230-
projects: AssertUnwindSafe(
231-
self.projects_by_workspace_folder
232-
.values()
233-
.cloned()
234-
.collect(),
235-
),
230+
projects: AssertUnwindSafe(self.projects.values().cloned().collect()),
236231
index: self.index.clone().unwrap(),
237232
position_encoding: self.position_encoding,
238233
}

0 commit comments

Comments
 (0)