Порівняти коміти

...
Автор SHA1 Повідомлення Дата
l0ng-ai 113f47772e test(lsp): compare server roots without cloning into a slice
The Xcode C-family test from #7023 built a one-element array by cloning
the root, which clippy's cloned_ref_to_slice_refs rejects under -D warnings,
so the three Rust CI jobs failed to compile ide-lsp's mock_server test.
2026-12-01 00:44:50 +08:00
+1 -1
Переглянути файл
@@ -8859,7 +8859,7 @@ async fn c_family_files_use_sourcekit_lsp_only_with_an_xcode_bsp_config() {
h.wait_status("sourcekit-lsp", ServerStatus::Ready).await;
eventually(|| h.launcher.state("sourcekit-lsp").docs.lock().contains_key(&uri_of(&path))).await;
assert!(h.statuses("clangd").is_empty(), "{language}");
assert_eq!(h.mgr.servers().iter().map(|s| s.root.clone()).collect::<Vec<_>>(), [h.root.clone()]);
assert_eq!(h.mgr.servers().iter().map(|s| s.root.clone()).collect::<Vec<_>>(), std::slice::from_ref(&h.root));
h.mgr.shutdown_all().await;
// sourcekit-lsp not installed: clangd still serves.