Skip to content

Commit 8452844

Browse files
committed
Fix tests checking the data value
1 parent 073a63b commit 8452844

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/rust-analyzer/src/diagnostics/to_proto.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,8 @@ mod tests {
535535
Config::new(workspace_root.to_path_buf(), ClientCapabilities::default()),
536536
);
537537
let snap = state.snapshot();
538-
let actual = map_rust_diagnostic_to_lsp(&config, &diagnostic, workspace_root, &snap);
538+
let mut actual = map_rust_diagnostic_to_lsp(&config, &diagnostic, workspace_root, &snap);
539+
actual.iter_mut().for_each(|diag| diag.diagnostic.data = None);
539540
expect.assert_debug_eq(&actual)
540541
}
541542

0 commit comments

Comments
 (0)