From 96b581bdd2bedb31aa51c0a992686f27ed1a1f10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E7=82=B3=E6=9D=83?= <695601626@qq.com> Date: Tue, 2 Jan 2024 06:22:48 +0800 Subject: chore: update to Rust 1.75 (#21731) --- cli/tests/integration/lsp_tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/tests/integration') diff --git a/cli/tests/integration/lsp_tests.rs b/cli/tests/integration/lsp_tests.rs index ae93212c1..78aff93ab 100644 --- a/cli/tests/integration/lsp_tests.rs +++ b/cli/tests/integration/lsp_tests.rs @@ -4481,7 +4481,7 @@ fn test_lsp_code_actions_ordering() { let action = action.as_object_mut().unwrap(); let title = action.get("title").unwrap().as_str().unwrap().to_string(); let diagnostics = action.get("diagnostics").unwrap().as_array().unwrap(); - let diagnostic = diagnostics.get(0).unwrap().as_object().unwrap(); + let diagnostic = diagnostics.first().unwrap().as_object().unwrap(); let source = diagnostic.get("source").unwrap(); let source = source.as_str().unwrap().to_string(); action.clear(); -- cgit v1.2.3