diff options
| author | Lukas Wirth <lukastw97@gmail.com> | 2022-11-18 20:11:48 +0100 |
|---|---|---|
| committer | Lukas Wirth <lukastw97@gmail.com> | 2022-11-18 20:15:49 +0100 |
| commit | 8452844c2674584064d8d459e41a3a809648a62f (patch) | |
| tree | 36faf9ed47273292dec6646cd7a69a802a3b96eb | |
| parent | 073a63b93ec39b51cb412119c38716c1af5db871 (diff) | |
| download | rust-8452844c2674584064d8d459e41a3a809648a62f.tar.gz rust-8452844c2674584064d8d459e41a3a809648a62f.zip | |
Fix tests checking the data value
| -rw-r--r-- | crates/rust-analyzer/src/diagnostics/to_proto.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/diagnostics/to_proto.rs b/crates/rust-analyzer/src/diagnostics/to_proto.rs index 35f37c740b8..beb23c54c9f 100644 --- a/crates/rust-analyzer/src/diagnostics/to_proto.rs +++ b/crates/rust-analyzer/src/diagnostics/to_proto.rs @@ -535,7 +535,8 @@ mod tests { Config::new(workspace_root.to_path_buf(), ClientCapabilities::default()), ); let snap = state.snapshot(); - let actual = map_rust_diagnostic_to_lsp(&config, &diagnostic, workspace_root, &snap); + let mut actual = map_rust_diagnostic_to_lsp(&config, &diagnostic, workspace_root, &snap); + actual.iter_mut().for_each(|diag| diag.diagnostic.data = None); expect.assert_debug_eq(&actual) } |
