дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-03 16:51:16 +02:00
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.
Цей коміт міститься в:
1 джерело
635da15486
коміт
113f47772e
1 file changed
+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.
|
||||
|
||||
Reference in new issue
Заблокувати користувача