Fix tests checking the data value

This commit is contained in:
Lukas Wirth 2022-11-18 20:11:48 +01:00
parent 073a63b93e
commit 8452844c26

View File

@ -535,7 +535,8 @@ fn check_with_config(config: DiagnosticsMapConfig, diagnostics_json: &str, expec
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)
}