diff options
author | 林炳权 <695601626@qq.com> | 2024-01-02 06:22:48 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-01 23:22:48 +0100 |
commit | 96b581bdd2bedb31aa51c0a992686f27ed1a1f10 (patch) | |
tree | 3e141ed70531ff37f93eb25d4ae135b97f14b7a1 /cli/tests/integration/lsp_tests.rs | |
parent | 7e72f3af6152d4b62c2ea94d025dfa297a6b0cb4 (diff) |
chore: update to Rust 1.75 (#21731)
Diffstat (limited to 'cli/tests/integration/lsp_tests.rs')
-rw-r--r-- | cli/tests/integration/lsp_tests.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |