Skip to content

Commit e76575a

Browse files
committed
Inline snapshot.query()
1 parent cd67988 commit e76575a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

crates/ty_server/src/server/api/diagnostics.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,7 @@ pub(super) fn compute_diagnostics(
107107

108108
let diagnostics = db.check_file(file);
109109

110-
let query = snapshot.query();
111-
112-
if let Some(notebook) = query.as_notebook() {
110+
if let Some(notebook) = snapshot.query().as_notebook() {
113111
let mut cell_diagnostics: FxHashMap<Url, Vec<Diagnostic>> = FxHashMap::default();
114112

115113
// Populates all relevant URLs with an empty diagnostic list. This ensures that documents

0 commit comments

Comments
 (0)